public class WaitingImageObserver extends Object implements ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
WaitingImageObserver(Image image)
Creates a new
ImageObserver |
WaitingImageObserver(Image image,
long maxLoadTime)
Creates a new
ImageObserver |
| Modifier and Type | Method and Description |
|---|---|
boolean |
imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
Callback function used by AWT to inform that more data is available.
|
boolean |
isError()
Returns true if there is an error condition, and false otherwise.
|
boolean |
isLoadingComplete()
Checks whether the loading is complete.
|
void |
waitImageLoaded()
The workerthread.
|
public WaitingImageObserver(Image image)
ImageObserver for the given Image. The observer has to be started by an
external thread.image - the image to observe (null not permitted).public WaitingImageObserver(Image image, long maxLoadTime)
ImageObserver for the given Image. The observer has to be started by an
external thread.image - the image to observe (null not permitted).public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
imageUpdate in interface ImageObserverimg - the image being observed.infoflags - the bitwise inclusive OR of the following flags: WIDTH, HEIGHT,
PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS,
ERROR, ABORT.x - the x coordinate.y - the y coordinate.width - the width.height - the height.false if the infoflags indicate that the image is completely loaded; true
otherwise.public void waitImageLoaded()
public boolean isLoadingComplete()
public boolean isError()