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

Class BufferedImageCachableRed

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.
Constructor Summary
BufferedImageCachableRed(BufferedImage bi)
Construct an instance of CachableRed around a BufferedImage.
BufferedImageCachableRed(BufferedImage bi, int xloc, int yloc)
Method Summary
WritableRastercopyData(WritableRaster wr)
RectanglegetBounds()
BufferedImagegetBufferedImage()
fetch the bufferedImage from this node.
RastergetData()
RastergetData(Rectangle rect)
ObjectgetProperty(String name)
String[]getPropertyNames()
RastergetTile(int tileX, int tileY)

Constructor Detail

BufferedImageCachableRed

public BufferedImageCachableRed(BufferedImage bi)
Construct an instance of CachableRed around a BufferedImage.

BufferedImageCachableRed

public BufferedImageCachableRed(BufferedImage bi, int xloc, int yloc)

Method Detail

copyData

public WritableRaster copyData(WritableRaster wr)

getBounds

public Rectangle getBounds()

getBufferedImage

public BufferedImage getBufferedImage()
fetch the bufferedImage from this node.

getData

public Raster getData()

getData

public Raster getData(Rectangle rect)

getProperty

public Object getProperty(String name)

getPropertyNames

public String[] getPropertyNames()

getTile

public Raster getTile(int tileX, int tileY)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.