public interface ImageObserver
ImageObserver
interface can
receive updates on image construction from an
ImageProducer
asynchronously.ImageProducer
Modifier and Type | Field and Description |
---|---|
static int |
ABORT
Production of the image was aborted.
|
static int |
ALLBITS
An image with a single frame, a static image, is complete.
|
static int |
ERROR
An error was encountered while producing the image.
|
static int |
FRAMEBITS
All the pixels needed to draw a complete frame of a multi-frame
image are available.
|
static int |
HEIGHT
The height of the image has been provided as the
height argument to imageUpdate . |
static int |
PROPERTIES
The properties of the image have been provided.
|
static int |
SOMEBITS
More pixels are now available for drawing a scaled variation of
the image.
|
static int |
WIDTH
The width of the image has been provided as the
width argument to imageUpdate . |
Modifier and Type | Method and Description |
---|---|
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.
|
static final int WIDTH
width
argument to imageUpdate
.static final int HEIGHT
height
argument to imageUpdate
.static final int PROPERTIES
static final int SOMEBITS
static final int FRAMEBITS
static final int ALLBITS
static final int ERROR
static final int ABORT
boolean imageUpdate(Image image, int flags, int x, int y, int width, int height)
image
- the image the update refers toflags
- a bit mask indicating what is provided with this updatex
- the x coordinate of the imagey
- the y coordinate of the imagewidth
- the width of the imageheight
- the height of the imageImage