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.
- Version:
- $Id: TranslateRed.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsFields inherited from class org.apache.batik.ext.awt.image.rendered.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()
int
The delata translation in x (absolute loc is available from getMinX())int
The 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 org.apache.batik.ext.awt.image.rendered.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:
getProperty
in interfaceRenderedImage
- Overrides:
getProperty
in classAbstractRed
-
getPropertyNames
- Specified by:
getPropertyNames
in interfaceRenderedImage
- Overrides:
getPropertyNames
in classAbstractRed
-
getTile
- Specified by:
getTile
in interfaceRenderedImage
- Overrides:
getTile
in classAbstractRed
-
getData
- Specified by:
getData
in interfaceRenderedImage
- Overrides:
getData
in classAbstractRed
-
getData
- Specified by:
getData
in interfaceRenderedImage
- Overrides:
getData
in classAbstractRed
-
copyData
-