Class CompositeRed
- java.lang.Object
-
- org.apache.batik.ext.awt.image.rendered.AbstractRed
-
- org.apache.batik.ext.awt.image.rendered.CompositeRed
-
- All Implemented Interfaces:
java.awt.image.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.- Version:
- $Id: CompositeRed.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.awt.CompositeContext[]contexts(package private) CompositeRulerule-
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
Constructors Constructor Description CompositeRed(java.util.List srcs, CompositeRule rule)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.WritableRastercopyData(java.awt.image.WritableRaster wr)voidemptyRect(java.awt.image.WritableRaster wr)protected static java.awt.image.ColorModelfixColorModel(CachableRed src)protected static java.awt.image.SampleModelfixSampleModel(CachableRed src, java.awt.image.ColorModel cm, java.awt.Rectangle bounds)This function 'fixes' the source's sample model.voidgenRect(java.awt.image.WritableRaster wr)voidgenRect_OVER(java.awt.image.WritableRaster wr)java.awt.image.RastergetTile(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
-
-
-
-
Field Detail
-
rule
CompositeRule rule
-
contexts
java.awt.CompositeContext[] contexts
-
-
Constructor Detail
-
CompositeRed
public CompositeRed(java.util.List srcs, CompositeRule rule)
-
-
Method Detail
-
copyData
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)
-
getTile
public java.awt.image.Raster getTile(int x, int y)- Specified by:
getTilein interfacejava.awt.image.RenderedImage- Overrides:
getTilein classAbstractRed
-
emptyRect
public void emptyRect(java.awt.image.WritableRaster wr)
-
genRect
public void genRect(java.awt.image.WritableRaster wr)
-
genRect_OVER
public void genRect_OVER(java.awt.image.WritableRaster wr)
-
fixSampleModel
protected static java.awt.image.SampleModel fixSampleModel(CachableRed src, java.awt.image.ColorModel cm, java.awt.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 java.awt.image.ColorModel fixColorModel(CachableRed src)
-
-