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 |
---|---|
WritableRaster |
copyData(WritableRaster wr) |
Raster |
getData() |
Raster |
getData(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())
|
Object |
getProperty(String name) |
String[] |
getPropertyNames() |
CachableRed |
getSource()
fetch the source image for this node.
|
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 Object getProperty(String name)
getProperty
in interface RenderedImage
getProperty
in class AbstractRed
public String[] getPropertyNames()
getPropertyNames
in interface RenderedImage
getPropertyNames
in class AbstractRed
public Raster getTile(int tileX, int tileY)
getTile
in interface RenderedImage
getTile
in class AbstractRed
public Raster getData()
getData
in interface RenderedImage
getData
in class AbstractRed
public Raster getData(Rectangle rect)
getData
in interface RenderedImage
getData
in class AbstractRed
public WritableRaster copyData(WritableRaster wr)
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.