Class TranslateRed
java.lang.Object
org.apache.batik.ext.awt.image.rendered.AbstractRed
org.apache.batik.ext.awt.image.rendered.TranslateRed
- All Implemented Interfaces:
RenderedImage, CachableRed
This is a special case of an Affine that only contains integer
translations, this allows it to do it's work by simply changing
the coordinate system of the tiles.
-
Field Summary
FieldsFields inherited from class AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth -
Constructor Summary
ConstructorsConstructorDescriptionTranslateRed(CachableRed cr, int xloc, int yloc) Construct an instance of TranslateRed -
Method Summary
Modifier and TypeMethodDescriptiongetData()intThe delata translation in x (absolute loc is available from getMinX())intThe delata translation in y (absolute loc is available from getMinY())getProperty(String name) String[]fetch the source image for this node.getTile(int tileX, int tileY) Methods inherited from class AbstractRed
copyBand, copyToRaster, getBounds, getColorModel, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, init, init, makeTile, updateTileGridInfo
-
Field Details
-
deltaX
protected int deltaX -
deltaY
protected int deltaY
-
-
Constructor Details
-
TranslateRed
Construct an instance of TranslateRed- Parameters:
xloc- The new x coordinate of cr.getMinX().yloc- The new y coordinate of cr.getMinY().
-
-
Method Details
-
getDeltaX
public int getDeltaX()The delata translation in x (absolute loc is available from getMinX()) -
getDeltaY
public int getDeltaY()The delata translation in y (absolute loc is available from getMinY()) -
getSource
fetch the source image for 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
-