org.apache.batik.ext.awt.image.rendered
Class BufferedImageCachableRed
java.lang.Object
|
+--org.apache.batik.ext.awt.image.rendered.AbstractRed
|
+--org.apache.batik.ext.awt.image.rendered.BufferedImageCachableRed
- All Implemented Interfaces:
- CachableRed, java.awt.image.RenderedImage
- public class BufferedImageCachableRed
- extends AbstractRed
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.
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 |
Method Summary |
java.awt.image.WritableRaster |
copyData(java.awt.image.WritableRaster wr)
|
java.awt.Rectangle |
getBounds()
Returns the bounds of the current image. |
java.awt.image.BufferedImage |
getBufferedImage()
fetch the bufferedImage from this node. |
java.awt.image.Raster |
getData()
|
java.awt.image.Raster |
getData(java.awt.Rectangle rect)
|
java.lang.Object |
getProperty(java.lang.String name)
|
java.lang.String[] |
getPropertyNames()
|
java.awt.image.Raster |
getTile(int tileX,
int tileY)
|
Methods inherited from class org.apache.batik.ext.awt.image.rendered.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferedImageCachableRed
public BufferedImageCachableRed(java.awt.image.BufferedImage bi)
- Construct an instance of CachableRed around a BufferedImage.
BufferedImageCachableRed
public BufferedImageCachableRed(java.awt.image.BufferedImage bi,
int xloc,
int yloc)
getBounds
public java.awt.Rectangle getBounds()
- Description copied from interface:
CachableRed
- Returns the bounds of the current image.
This should be 'in sync' with getMinX, getMinY, getWidth, getHeight
- Overrides:
getBounds
in class AbstractRed
getBufferedImage
public java.awt.image.BufferedImage getBufferedImage()
- fetch the bufferedImage from this node.
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Overrides:
getProperty
in class AbstractRed
getPropertyNames
public java.lang.String[] getPropertyNames()
- Overrides:
getPropertyNames
in class AbstractRed
getTile
public java.awt.image.Raster getTile(int tileX,
int tileY)
- Overrides:
getTile
in class AbstractRed
getData
public java.awt.image.Raster getData()
- Overrides:
getData
in class AbstractRed
getData
public java.awt.image.Raster getData(java.awt.Rectangle rect)
- Overrides:
getData
in class AbstractRed
copyData
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)
Copyright © 2002 Apache Software Foundation. All Rights Reserved.