Class BufferedImageCachableRed
java.lang.Object
org.apache.xmlgraphics.image.rendered.AbstractRed
org.apache.xmlgraphics.image.rendered.BufferedImageCachableRed
- All Implemented Interfaces:
RenderedImage, CachableRed
This implements CachableRed based on a BufferedImage.
You can use this to wrap a BufferedImage that you want to
appear as a CachableRed.
It essentially ignores the dependency and dirty region methods.
Originally authored by Thomas DeWeese.
- Version:
- $Id$
-
Field Summary
Fields inherited from class AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an instance of CachableRed around a BufferedImage.BufferedImageCachableRed(BufferedImage bi, int xloc, int yloc) -
Method Summary
Modifier and TypeMethodDescriptionReturns the bounds of the current image.fetch the bufferedImage from this node.getData()getProperty(String name) String[]getTile(int tileX, int tileY) Methods inherited from class AbstractRed
copyBand, copyToRaster, getColorModel, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, init, init, makeTile, updateTileGridInfo
-
Constructor Details
-
BufferedImageCachableRed
Construct an instance of CachableRed around a BufferedImage. -
BufferedImageCachableRed
-
-
Method Details
-
getBounds
Description copied from interface:CachableRedReturns the bounds of the current image. This should be 'in sync' with getMinX, getMinY, getWidth, getHeight- Specified by:
getBoundsin interfaceCachableRed- Overrides:
getBoundsin classAbstractRed
-
getBufferedImage
fetch the bufferedImage from this node. -
getProperty
- Specified by:
getPropertyin interfaceRenderedImage- Overrides:
getPropertyin classAbstractRed
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceRenderedImage- Overrides:
getPropertyNamesin classAbstractRed
-
getTile
- Specified by:
getTilein interfaceRenderedImage- Overrides:
getTilein classAbstractRed
-
getData
- Specified by:
getDatain interfaceRenderedImage- Overrides:
getDatain classAbstractRed
-
getData
- Specified by:
getDatain interfaceRenderedImage- Overrides:
getDatain classAbstractRed
-
copyData
-