java.awt.image

Interface ImageObserver

public interface ImageObserver

An object implementing the ImageObserver interface can receive updates on image construction from an ImageProducer asynchronously.

See Also: ImageProducer

Field Summary
intABORT
Production of the image was aborted.
intALLBITS
An image with a single frame, a static image, is complete.
intERROR
An error was encountered while producing the image.
intFRAMEBITS
All the pixels needed to draw a complete frame of a multi-frame image are available.
intHEIGHT
The height of the image has been provided as the height argument to imageUpdate.
intPROPERTIES
The properties of the image have been provided.
intSOMEBITS
More pixels are now available for drawing a scaled variation of the image.
intWIDTH
The width of the image has been provided as the width argument to imageUpdate.
Method Summary
booleanimageUpdate(Image image, int flags, int x, int y, int width, int height)
This is a callback method for an asynchronous image producer to provide updates on the production of the image as it happens.

Field Detail

ABORT

public int ABORT
Production of the image was aborted.

See Also: ImageObserver

ALLBITS

public int ALLBITS
An image with a single frame, a static image, is complete.

See Also: ImageObserver

ERROR

public int ERROR
An error was encountered while producing the image.

See Also: ImageObserver

FRAMEBITS

public int FRAMEBITS
All the pixels needed to draw a complete frame of a multi-frame image are available.

See Also: ImageObserver

HEIGHT

public int HEIGHT
The height of the image has been provided as the height argument to imageUpdate.

See Also: ImageObserver

PROPERTIES

public int PROPERTIES
The properties of the image have been provided.

See Also: ImageObserver Image

SOMEBITS

public int SOMEBITS
More pixels are now available for drawing a scaled variation of the image.

See Also: ImageObserver

WIDTH

public int WIDTH
The width of the image has been provided as the width argument to imageUpdate.

See Also: ImageObserver

Method Detail

imageUpdate

public boolean imageUpdate(Image image, int flags, int x, int y, int width, int height)
This is a callback method for an asynchronous image producer to provide updates on the production of the image as it happens.

Parameters: image the image the update refers to flags a bit mask indicating what is provided with this update x the x coordinate of the image y the y coordinate of the image width the width of the image height the height of the image

See Also: Image