|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.image.FopImageConsumer
ImageConsumer implementation for FopImage classes.
| Field Summary | |
protected java.awt.image.ColorModel |
cm
Color model |
protected int |
height
Image height in pixels |
protected int |
hints
hints |
protected java.lang.Integer |
imageStatus
Image status |
protected java.awt.image.ImageProducer |
ip
Image producer |
protected java.util.Hashtable |
properties
Image properties |
protected int |
width
Image width in pixels |
| Fields inherited from interface java.awt.image.ImageConsumer |
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT |
| Constructor Summary | |
FopImageConsumer(java.awt.image.ImageProducer iprod)
Main constructor |
|
| Method Summary | |
java.awt.image.ColorModel |
getColorModel()
Returns the color model of the image |
int |
getHeight()
Returns the image height |
int[] |
getImage()
Returns the bitmap as an array. |
int |
getWidth()
Returns the image width |
void |
imageComplete(int status)
|
boolean |
isImageReady()
Indicates whether the image is ready. |
void |
setColorModel(java.awt.image.ColorModel model)
|
void |
setDimensions(int width,
int height)
|
void |
setHints(int hintflags)
|
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
byte[] pixels,
int off,
int scansize)
|
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
int[] pixels,
int off,
int scansize)
|
void |
setProperties(java.util.Hashtable props)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int width
protected int height
protected java.lang.Integer imageStatus
protected int hints
protected java.util.Hashtable properties
protected java.awt.image.ColorModel cm
protected java.awt.image.ImageProducer ip
| Constructor Detail |
public FopImageConsumer(java.awt.image.ImageProducer iprod)
iprod - ImageProducer to use| Method Detail |
public void imageComplete(int status)
imageComplete in interface java.awt.image.ImageConsumerImageConsumer.imageComplete(int)public void setColorModel(java.awt.image.ColorModel model)
setColorModel in interface java.awt.image.ImageConsumerImageConsumer.setColorModel(ColorModel)
public void setDimensions(int width,
int height)
setDimensions in interface java.awt.image.ImageConsumerImageConsumer.setDimensions(int, int)public void setHints(int hintflags)
setHints in interface java.awt.image.ImageConsumerImageConsumer.setHints(int)public void setProperties(java.util.Hashtable props)
setProperties in interface java.awt.image.ImageConsumerImageConsumer.setProperties(Hashtable)
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.ImageConsumerImageConsumer.setPixels(int, int, int, int, ColorModel, byte[], int, int)
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.ImageConsumerImageConsumer.setPixels(int, int, int, int, ColorModel, int[], int, int)
public boolean isImageReady()
throws java.lang.Exception
java.lang.Exception - If an error happened while loading the imagepublic int getWidth()
public int getHeight()
public java.awt.image.ColorModel getColorModel()
public int[] getImage()
throws java.lang.Exception
java.lang.Exception - if an error occured while generating the array
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||