org.apache.batik.ext.awt.image.rendered
Class CompositeRed

java.lang.Object
  extended by org.apache.batik.ext.awt.image.rendered.AbstractRed
      extended by org.apache.batik.ext.awt.image.rendered.CompositeRed
All Implemented Interfaces:
RenderedImage, CachableRed

public class CompositeRed
extends AbstractRed

This is an implementation of an affine operation as a RenderedImage. Right now the implementation makes use of the AffineBufferedImageOp to do the work. Eventually this may move to be more tiled in nature.


Field Summary
 
Fields inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth
 
Constructor Summary
CompositeRed(List srcs, CompositeRule rule)
           
 
Method Summary
 WritableRaster copyData(WritableRaster wr)
           
 void emptyRect(WritableRaster wr)
           
protected static ColorModel fixColorModel(CachableRed src)
           
protected static SampleModel fixSampleModel(CachableRed src, ColorModel cm, Rectangle bounds)
          This function 'fixes' the source's sample model.
 void genRect_OVER(WritableRaster wr)
           
 void genRect(WritableRaster wr)
           
 Raster getTile(int x, int y)
           
 
Methods inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
copyBand, copyToRaster, getBounds, getColorModel, getData, getData, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, init, init, makeTile, updateTileGridInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeRed

public CompositeRed(List srcs,
                    CompositeRule rule)
Method Detail

copyData

public WritableRaster copyData(WritableRaster wr)

getTile

public Raster getTile(int x,
                      int y)
Specified by:
getTile in interface RenderedImage
Overrides:
getTile in class AbstractRed

emptyRect

public void emptyRect(WritableRaster wr)

genRect

public void genRect(WritableRaster wr)

genRect_OVER

public void genRect_OVER(WritableRaster wr)

fixSampleModel

protected static SampleModel fixSampleModel(CachableRed src,
                                            ColorModel cm,
                                            Rectangle bounds)
This function 'fixes' the source's sample model. right now it just ensures that the sample model isn't much larger than my width.


fixColorModel

protected static ColorModel fixColorModel(CachableRed src)


Copyright © 2008 Apache Software Foundation. All Rights Reserved.