Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for objects expressing interest in image data through the ImageProducer interfaces. When a consumer is added to an image producer, the producer delivers all of the data about the image using the method calls defined in this interface.
ImageProducer
Field Summary | |
static int |
COMPLETESCANLINES
The pixels will be delivered in (multiples of) complete scanlines at a time. |
static int |
IMAGEABORTED
The image creation process was deliberately aborted. |
static int |
IMAGEERROR
An error was encountered while producing the image. |
static int |
RANDOMPIXELORDER
The pixels will be delivered in a random order. |
static int |
SINGLEFRAME
The image contain a single static image. |
static int |
SINGLEFRAMEDONE
One frame of the image is complete but there are more frames to be delivered. |
static int |
SINGLEPASS
The pixels will be delivered in a single pass. |
static int |
STATICIMAGEDONE
The image is complete and there are no more pixels or frames to be delivered. |
static int |
TOPDOWNLEFTRIGHT
The pixels will be delivered in top-down, left-to-right order. |
Method Summary | |
void |
imageComplete(int status)
The imageComplete method is called when the ImageProducer is finished delivering all of the pixels that the source image contains, or when a single frame of a multi-frame animation has been completed, or when an error in loading or producing the image has occured. |
void |
setColorModel(ColorModel model)
The ColorModel object used for the majority of the pixels reported using the setPixels method calls. |
void |
setDimensions(int width,
int height)
The dimensions of the source image are reported using the setDimensions method call. |
void |
setHints(int hintflags)
The ImageProducer can deliver the pixels in any order, but the ImageConsumer may be able to scale or convert the pixels to the destination ColorModel more efficiently or with higher quality if it knows some information about how the pixels will be delivered up front. |
void |
setPixels(int x,
int y,
int w,
int h,
ColorModel model,
byte[] pixels,
int off,
int scansize)
The pixels of the image are delivered using one or more calls to the setPixels method. |
void |
setPixels(int x,
int y,
int w,
int h,
ColorModel model,
int[] pixels,
int off,
int scansize)
The pixels of the image are delivered using one or more calls to the setPixels method. |
void |
setProperties(Hashtable props)
Sets the extensible list of properties associated with this image. |
Field Detail |
public static final int RANDOMPIXELORDER
setHints(int)
public static final int TOPDOWNLEFTRIGHT
setHints(int)
public static final int COMPLETESCANLINES
setHints(int)
public static final int SINGLEPASS
setHints(int)
public static final int SINGLEFRAME
setHints(int)
,
imageComplete(int)
public static final int IMAGEERROR
imageComplete(int)
public static final int SINGLEFRAMEDONE
imageComplete(int)
public static final int STATICIMAGEDONE
imageComplete(int)
public static final int IMAGEABORTED
imageComplete(int)
Method Detail |
public void setDimensions(int width, int height)
public void setProperties(Hashtable props)
public void setColorModel(ColorModel model)
ColorModel
public void setHints(int hintflags)
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
ColorModel
public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
ColorModel
public void imageComplete(int status)
ImageProducer.removeConsumer(java.awt.image.ImageConsumer)
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.