diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-12 21:13:51 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-12 21:13:51 +0000 |
commit | c6be190f2480a6dd77b390e21c552c50a56e2aa1 (patch) | |
tree | 9839dc19f293ba9ea14d4d734158b46280ad8f38 /libjava | |
parent | 82cfc7f78d8763c79bfeb24481ff1311b81ce8a4 (diff) | |
download | gcc-c6be190f2480a6dd77b390e21c552c50a56e2aa1.tar.gz |
Add missing files from last check-in:
* java/awt/image/ImageConsumer.java: New file.
* java/awt/image/ImageProducer.java: New file.
* java/awt/image/ImageObserver.java: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35000 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 7 | ||||
-rw-r--r-- | libjava/java/awt/image/ImageConsumer.java | 32 | ||||
-rw-r--r-- | libjava/java/awt/image/ImageObserver.java | 28 | ||||
-rw-r--r-- | libjava/java/awt/image/ImageProducer.java | 16 |
4 files changed, 83 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index ce60672ce10..3e504844276 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,10 @@ +2000-07-13 Bryce McKinlay <bryce@albatross.co.nz> + + Add missing files from last check-in: + * java/awt/image/ImageConsumer.java: New file. + * java/awt/image/ImageProducer.java: New file. + * java/awt/image/ImageObserver.java: New file. + 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz> Merged implementation of java.applet from classpath: diff --git a/libjava/java/awt/image/ImageConsumer.java b/libjava/java/awt/image/ImageConsumer.java new file mode 100644 index 00000000000..4cf19dcfe8f --- /dev/null +++ b/libjava/java/awt/image/ImageConsumer.java @@ -0,0 +1,32 @@ +/* Copyright (C) 2000 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +public interface ImageConsumer +{ + + public static final int RANDOMPIXELORDER = 1 << 0, + TOPDOWNLEFTRIGHT = 1 << 1, + COMPLETESCANLINES = 1 << 2, + SINGLEPASS = 1 << 3, + SINGLEFRAME = 1 << 4; + + public static final int IMAGEERROR = 1, + SINGLEFRAMEDONE = 2, + STATICIMAGEDONE = 3, + IMAGEABORTED = 4; + + public void setDimensions(int width, int height); + public void setProperties(Hashtable props); + public void setColorModel(ColorModel model); + public void setHints(int hintflags); + public void setPixels(int x, int y, int w, int h, ColorModel model, + byte[] pixels, int off, int scansize); + public void setPixels(int x, int y, int w, int h, ColorModel model, + int[] pixels, int off, int scansize); + public void imageComplete(int status); +} diff --git a/libjava/java/awt/image/ImageObserver.java b/libjava/java/awt/image/ImageObserver.java new file mode 100644 index 00000000000..770e28ca053 --- /dev/null +++ b/libjava/java/awt/image/ImageObserver.java @@ -0,0 +1,28 @@ +/* Copyright (C) 2000 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package java.awt.image; + +import java.awt.Image; + +public interface ImageObserver +{ + int WIDTH = 1 << 0; + int HEIGHT = 1 << 1; + int PROPERTIES = 1 << 2; + int SOMEBITS = 1 << 3; + int FRAMEBITS = 1 << 4; + int ALLBITS = 1 << 5; + int ERROR = 1 << 6; + int ABORT = 1 << 7; + + boolean imageUpdate(Image image, int infoFlags, int x, int y, int width, + int height); +} + + diff --git a/libjava/java/awt/image/ImageProducer.java b/libjava/java/awt/image/ImageProducer.java new file mode 100644 index 00000000000..51808cd6afe --- /dev/null +++ b/libjava/java/awt/image/ImageProducer.java @@ -0,0 +1,16 @@ +/* Copyright (C) 2000 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +public interface ImageProducer +{ + void addConsumer(ImageConsumer ic); + boolean isConsumer(ImageConsumer ic); + void removeConsumer(ImageConsumer ic); + void startProduction(ImageConsumer ic); + void requestTopDownLeftRightResend(ImageConsumer ic); +} |