public class TranslateRed extends AbstractRed
Modifier and Type | Field and Description |
---|---|
protected int |
deltaX |
protected int |
deltaY |
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth
Constructor and Description |
---|
TranslateRed(CachableRed cr,
int xloc,
int yloc)
Construct an instance of TranslateRed
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.WritableRaster |
copyData(java.awt.image.WritableRaster wr) |
java.awt.image.Raster |
getData() |
java.awt.image.Raster |
getData(java.awt.Rectangle rect) |
int |
getDeltaX()
The delata translation in x (absolute loc is available from getMinX())
|
int |
getDeltaY()
The delata translation in y (absolute loc is available from getMinY())
|
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String[] |
getPropertyNames() |
CachableRed |
getSource()
fetch the source image for this node.
|
java.awt.image.Raster |
getTile(int tileX,
int tileY) |
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
public TranslateRed(CachableRed cr, int xloc, int yloc)
xloc
- The new x coordinate of cr.getMinX().yloc
- The new y coordinate of cr.getMinY().public int getDeltaX()
public int getDeltaY()
public CachableRed getSource()
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface java.awt.image.RenderedImage
getProperty
in class AbstractRed
public java.lang.String[] getPropertyNames()
getPropertyNames
in interface java.awt.image.RenderedImage
getPropertyNames
in class AbstractRed
public java.awt.image.Raster getTile(int tileX, int tileY)
getTile
in interface java.awt.image.RenderedImage
getTile
in class AbstractRed
public java.awt.image.Raster getData()
getData
in interface java.awt.image.RenderedImage
getData
in class AbstractRed
public java.awt.image.Raster getData(java.awt.Rectangle rect)
getData
in interface java.awt.image.RenderedImage
getData
in class AbstractRed
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.