|
xmlgraphics-commons 2.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlgraphics.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 RenderedImagepublic Rectangle getBounds()
CachableRed
getBounds in interface CachableRedpublic int getMinX()
getMinX in interface RenderedImagepublic int getMinY()
getMinY in interface RenderedImagepublic int getWidth()
getWidth in interface RenderedImagepublic int getHeight()
getHeight in interface RenderedImagepublic ColorModel getColorModel()
getColorModel in interface RenderedImagepublic SampleModel getSampleModel()
getSampleModel in interface RenderedImagepublic int getMinTileX()
getMinTileX in interface RenderedImagepublic int getMinTileY()
getMinTileY in interface RenderedImagepublic int getNumXTiles()
getNumXTiles in interface RenderedImagepublic int getNumYTiles()
getNumYTiles in interface RenderedImagepublic int getTileGridXOffset()
getTileGridXOffset in interface RenderedImagepublic int getTileGridYOffset()
getTileGridYOffset in interface RenderedImagepublic int getTileWidth()
getTileWidth in interface RenderedImagepublic int getTileHeight()
getTileHeight in interface RenderedImagepublic Object getProperty(String name)
getProperty in interface RenderedImagepublic String[] getPropertyNames()
getPropertyNames in interface RenderedImage
public Raster getTile(int tileX,
int tileY)
getTile in interface RenderedImagepublic WritableRaster copyData(WritableRaster raster)
copyData in interface RenderedImagepublic Raster getData()
getData in interface RenderedImagepublic Raster getData(Rectangle rect)
getData in interface RenderedImage
public Shape getDependencyRegion(int srcIndex,
Rectangle outputRgn)
CachableRed
getDependencyRegion in interface CachableRedsrcIndex - 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 CachableRedsrcIndex - 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.
|
xmlgraphics-commons 2.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||