org.apache.fop.image
Class FopImageConsumer

java.lang.Object
  extended by org.apache.fop.image.FopImageConsumer
All Implemented Interfaces:
ImageConsumer

public class FopImageConsumer
extends Object
implements ImageConsumer

Image consumer implementation for FopImage classes

Author:
Eric SCHAEFFER

Field Summary
protected  ColorModel cm
           
protected  int height
           
protected  int hints
           
protected  Integer imageStatus
           
protected  ImageProducer ip
           
protected  Hashtable properties
           
protected  int width
           
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
FopImageConsumer(ImageProducer iprod)
           
 
Method Summary
 ColorModel getColorModel()
           
 int getHeight()
           
 int[] getImage()
           
 int getWidth()
           
 void imageComplete(int status)
           
 boolean isImageReady()
           
 void setColorModel(ColorModel model)
           
 void setDimensions(int width, int height)
           
 void setHints(int hintflags)
           
 void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
           
 void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
           
 void setProperties(Hashtable props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

protected int width

height

protected int height

imageStatus

protected Integer imageStatus

hints

protected int hints

properties

protected Hashtable properties

cm

protected ColorModel cm

ip

protected ImageProducer ip
Constructor Detail

FopImageConsumer

public FopImageConsumer(ImageProducer iprod)
Method Detail

imageComplete

public void imageComplete(int status)
Specified by:
imageComplete in interface ImageConsumer

setColorModel

public void setColorModel(ColorModel model)
Specified by:
setColorModel in interface ImageConsumer

setDimensions

public void setDimensions(int width,
                          int height)
Specified by:
setDimensions in interface ImageConsumer

setHints

public void setHints(int hintflags)
Specified by:
setHints in interface ImageConsumer

setProperties

public void setProperties(Hashtable props)
Specified by:
setProperties in interface ImageConsumer

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      ColorModel model,
                      byte[] pixels,
                      int off,
                      int scansize)
Specified by:
setPixels in interface ImageConsumer

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      ColorModel model,
                      int[] pixels,
                      int off,
                      int scansize)
Specified by:
setPixels in interface ImageConsumer

isImageReady

public boolean isImageReady()
                     throws Exception
Throws:
Exception

getWidth

public int getWidth()

getHeight

public int getHeight()

getColorModel

public ColorModel getColorModel()

getImage

public int[] getImage()
               throws Exception
Throws:
Exception


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.