|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.morena.MorenaImage
public class MorenaImage
Simple image memory cache implementing both ImageConsumer and ImageProducer interfaces.
Field Summary |
---|
Fields inherited from interface java.awt.image.ImageConsumer |
---|
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT |
Constructor Summary | |
---|---|
MorenaImage(java.awt.image.ImageProducer producer)
Create an buffered image from given image producer. |
Method Summary | |
---|---|
void |
addConsumer(java.awt.image.ImageConsumer consumer)
This method is used to register an ImageConsumer with the ImageProducer for access to the image data during a later reconstruction of the Image. |
java.awt.image.ColorModel |
getColorModel()
Return color model of cached image. |
int |
getHeight()
Return height of cached image. |
int |
getPixelSize()
Return pixel size (or depth) of cached image. |
int |
getStatus()
Return status supplied with imageComplete() call. |
int |
getWidth()
Return width of cached image. |
void |
imageComplete(int status)
Save final status. |
boolean |
isConsumer(java.awt.image.ImageConsumer consumer)
This method determines if a given ImageConsumer object is currently registered with this ImageProducer as one of its consumers. |
void |
removeConsumer(java.awt.image.ImageConsumer consumer)
This method removes the given ImageConsumer object from the list of consumers currently registered to receive image data. |
void |
requestTopDownLeftRightResend(java.awt.image.ImageConsumer consumer)
Not used. |
void |
setColorModel(java.awt.image.ColorModel colorModel)
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 hints)
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,
java.awt.image.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,
java.awt.image.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(java.util.Hashtable props)
Not used. |
void |
startProduction(java.awt.image.ImageConsumer consumer)
This method both registers the given ImageConsumer object as a consumer and starts an immediate reconstruction of the image data which will then be delivered to this consumer and any other consumer which may have already been registered with the producer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MorenaImage(java.awt.image.ImageProducer producer)
Method Detail |
---|
public int getWidth()
public int getHeight()
public java.awt.image.ColorModel getColorModel()
public int getPixelSize()
public int getStatus()
public void imageComplete(int status)
imageComplete
in interface java.awt.image.ImageConsumer
public void setColorModel(java.awt.image.ColorModel colorModel)
setColorModel
in interface java.awt.image.ImageConsumer
public void setDimensions(int width, int height)
setDimensions
in interface java.awt.image.ImageConsumer
public void setHints(int hints)
setHints
in interface java.awt.image.ImageConsumer
public void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, byte[] pixels, int off, int scansize)
setPixels
in interface java.awt.image.ImageConsumer
public void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, int[] pixels, int off, int scansize)
setPixels
in interface java.awt.image.ImageConsumer
public void setProperties(java.util.Hashtable props)
setProperties
in interface java.awt.image.ImageConsumer
public void addConsumer(java.awt.image.ImageConsumer consumer)
addConsumer
in interface java.awt.image.ImageProducer
startProduction(java.awt.image.ImageConsumer)
public boolean isConsumer(java.awt.image.ImageConsumer consumer)
isConsumer
in interface java.awt.image.ImageProducer
public void removeConsumer(java.awt.image.ImageConsumer consumer)
removeConsumer
in interface java.awt.image.ImageProducer
public void startProduction(java.awt.image.ImageConsumer consumer)
startProduction
in interface java.awt.image.ImageProducer
addConsumer(java.awt.image.ImageConsumer)
public void requestTopDownLeftRightResend(java.awt.image.ImageConsumer consumer)
requestTopDownLeftRightResend
in interface java.awt.image.ImageProducer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |