java.lang.Object
com.sixlegs.image.png.DummyImageConsumer
- All Implemented Interfaces:
- java.awt.image.ImageConsumer
- class DummyImageConsumer
- extends java.lang.Object
- implements java.awt.image.ImageConsumer
|
Method Summary |
void |
imageComplete(int status)
The ImageProducer calls this method to indicate a
single frame or the entire image is complete. |
void |
setColorModel(java.awt.image.ColorModel model)
This ColorModel should indicate the model used by
the majority of calls to setPixels. |
void |
setDimensions(int width,
int height)
An ImageProducer indicates the size of the image
being produced using this method. |
void |
setHints(int hintflags)
The ImageProducer should call this method with a
bit mask of hints from any of RANDOMPIXELORDER,
TOPDOWNLEFTRIGHT, COMPLETESCANLINES,
SINGLEPASS, SINGLEFRAME. |
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
byte[] pixels,
int off,
int scansize)
Deliver a subset of an ImageProducer's pixels to this ImageConsumer. |
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
int[] pixels,
int off,
int scansize)
Deliver a subset of an ImageProducer's pixels to this ImageConsumer. |
void |
setProperties(java.util.Hashtable props)
An ImageProducer can set a list of properties
associated with this image by using this method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyImageConsumer
DummyImageConsumer()
setDimensions
public void setDimensions(int width,
int height)
- Description copied from interface:
java.awt.image.ImageConsumer
- An
ImageProducer indicates the size of the image
being produced using this method.
- Specified by:
setDimensions in interface java.awt.image.ImageConsumer
setProperties
public void setProperties(java.util.Hashtable props)
- Description copied from interface:
java.awt.image.ImageConsumer
- An
ImageProducer can set a list of properties
associated with this image by using this method.
- Specified by:
setProperties in interface java.awt.image.ImageConsumer
setHints
public void setHints(int hintflags)
- Description copied from interface:
java.awt.image.ImageConsumer
- The
ImageProducer should call this method with a
bit mask of hints from any of RANDOMPIXELORDER,
TOPDOWNLEFTRIGHT, COMPLETESCANLINES,
SINGLEPASS, SINGLEFRAME.
- Specified by:
setHints in interface java.awt.image.ImageConsumer
setPixels
public void setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
byte[] pixels,
int off,
int scansize)
- Description copied from interface:
java.awt.image.ImageConsumer
- Deliver a subset of an ImageProducer's pixels to this ImageConsumer.
Each element of the pixels array represents one pixel. The
pixel data is formatted according to the color model model.
The x and y parameters are the coordinates of the block of
pixels being delivered to this ImageConsumer. They are
specified relative to the top left corner of the image being
produced. Likewise, w and h are the pixel block's dimensions.
- Specified by:
setPixels in interface java.awt.image.ImageConsumer
setPixels
public void setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
int[] pixels,
int off,
int scansize)
- Description copied from interface:
java.awt.image.ImageConsumer
- Deliver a subset of an ImageProducer's pixels to this ImageConsumer.
Each element of the pixels array represents one pixel. The
pixel data is formatted according to the color model model.
The x and y parameters are the coordinates of the rectangular
region of pixels being delivered to this ImageConsumer,
specified relative to the top left corner of the image being
produced. Likewise, w and h are the pixel region's dimensions.
- Specified by:
setPixels in interface java.awt.image.ImageConsumer
imageComplete
public void imageComplete(int status)
- Description copied from interface:
java.awt.image.ImageConsumer
- The
ImageProducer calls this method to indicate a
single frame or the entire image is complete. The method is
also used to indicate an error in loading or producing the
image.
- Specified by:
imageComplete in interface java.awt.image.ImageConsumer
setColorModel
public void setColorModel(java.awt.image.ColorModel model)
- Description copied from interface:
java.awt.image.ImageConsumer
- This
ColorModel should indicate the model used by
the majority of calls to setPixels. Each call to
setPixels could however indicate a different
ColorModel.
- Specified by:
setColorModel in interface java.awt.image.ImageConsumer