|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.ext.awt.image.rendered.RenderedImageCachableRed
public class RenderedImageCachableRed
This implements CachableRed around a RenderedImage. You can use this to wrap a RenderedImage that you want to appear as a CachableRed. It essentially ignores the dependency and dirty region methods.
Constructor Summary | |
---|---|
RenderedImageCachableRed(RenderedImage src)
|
Method Summary | |
---|---|
WritableRaster |
copyData(WritableRaster raster)
|
Rectangle |
getBounds()
Returns the bounds of the current image. |
ColorModel |
getColorModel()
|
Raster |
getData()
|
Raster |
getData(Rectangle rect)
|
Shape |
getDependencyRegion(int srcIndex,
Rectangle outputRgn)
Returns the region of input data is is required to generate outputRgn. |
Shape |
getDirtyRegion(int srcIndex,
Rectangle inputRgn)
This calculates the region of output that is affected by a change in a region of input. |
int |
getHeight()
|
int |
getMinTileX()
|
int |
getMinTileY()
|
int |
getMinX()
|
int |
getMinY()
|
int |
getNumXTiles()
|
int |
getNumYTiles()
|
Object |
getProperty(String name)
|
String[] |
getPropertyNames()
|
SampleModel |
getSampleModel()
|
Vector |
getSources()
|
Raster |
getTile(int tileX,
int tileY)
|
int |
getTileGridXOffset()
|
int |
getTileGridYOffset()
|
int |
getTileHeight()
|
int |
getTileWidth()
|
int |
getWidth()
|
static CachableRed |
wrap(RenderedImage ri)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenderedImageCachableRed(RenderedImage src)
Method Detail |
---|
public static CachableRed wrap(RenderedImage ri)
public Vector getSources()
getSources
in interface RenderedImage
public Rectangle getBounds()
CachableRed
getBounds
in interface CachableRed
public int getMinX()
getMinX
in interface RenderedImage
public int getMinY()
getMinY
in interface RenderedImage
public int getWidth()
getWidth
in interface RenderedImage
public int getHeight()
getHeight
in interface RenderedImage
public ColorModel getColorModel()
getColorModel
in interface RenderedImage
public SampleModel getSampleModel()
getSampleModel
in interface RenderedImage
public int getMinTileX()
getMinTileX
in interface RenderedImage
public int getMinTileY()
getMinTileY
in interface RenderedImage
public int getNumXTiles()
getNumXTiles
in interface RenderedImage
public int getNumYTiles()
getNumYTiles
in interface RenderedImage
public int getTileGridXOffset()
getTileGridXOffset
in interface RenderedImage
public int getTileGridYOffset()
getTileGridYOffset
in interface RenderedImage
public int getTileWidth()
getTileWidth
in interface RenderedImage
public int getTileHeight()
getTileHeight
in interface RenderedImage
public Object getProperty(String name)
getProperty
in interface RenderedImage
public String[] getPropertyNames()
getPropertyNames
in interface RenderedImage
public Raster getTile(int tileX, int tileY)
getTile
in interface RenderedImage
public WritableRaster copyData(WritableRaster raster)
copyData
in interface RenderedImage
public Raster getData()
getData
in interface RenderedImage
public Raster getData(Rectangle rect)
getData
in interface RenderedImage
public Shape getDependencyRegion(int srcIndex, Rectangle outputRgn)
CachableRed
getDependencyRegion
in interface CachableRed
srcIndex
- The source to do the dependency calculation for.outputRgn
- The region of output you are interested in
generating dependencies for. The is given in the output pixel
coordiate system for this node.
public Shape getDirtyRegion(int srcIndex, Rectangle inputRgn)
CachableRed
getDirtyRegion
in interface CachableRed
srcIndex
- The input that inputRgn reflects changes in.inputRgn
- the region of input that has changed, used to
calculate the returned shape. This is given in the pixel
coordinate system of the source indicated by srcIndex.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |