public final class TranslateIntOpImage
extends javax.media.jai.OpImage
Constructor and Description |
---|
TranslateIntOpImage(RenderedImage source,
Map config,
int transX,
int transY)
Construct an TranslateIntOpImage.
|
Modifier and Type | Method and Description |
---|---|
boolean |
computesUniqueTiles()
Returns
false as computeTile() invocations
return child Raster s of the RenderedImage
source and are therefore not unique objects in the global sense. |
Raster |
computeTile(int tileX,
int tileY)
Override computeTile() simply to invoke getTile().
|
Raster |
getTile(int tileX,
int tileY)
Get a tile.
|
Rectangle |
mapDestRect(Rectangle destRect,
int sourceIndex)
Returns a conservative estimate of the region of a specified
source that is required in order to compute the pixels of a
given destination rectangle.
|
Rectangle |
mapSourceRect(Rectangle sourceRect,
int sourceIndex)
Returns a conservative estimate of the destination region that
can potentially be affected by the pixels of a rectangle of a
given source.
|
addTileToCache, cancelTiles, computeRect, computeRect, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorize
addPropertyChangeListener, addPropertyChangeListener, addSink, addSink, addSource, addTileComputationListener, copyData, copyData, copyExtendedData, createColorModel, createSnapshot, createWritableRaster, finalize, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getData, getData, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, setProperties, setProperty, setSource, setSources, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY
public TranslateIntOpImage(RenderedImage source, Map config, int transX, int transY)
source
- a RenderedImage.config
- Configurable attributes of the image including
configuration variables indexed by
RenderingHints.Key
s and image properties indexed
by String
s or CaselessStringKey
s.
This is simply forwarded to the superclass constructor.transX
- the number of pixels of horizontal translation.transY
- the number of pixels of vertical translation.public boolean computesUniqueTiles()
false
as computeTile()
invocations
return child Raster
s of the RenderedImage
source and are therefore not unique objects in the global sense.computesUniqueTiles
in class javax.media.jai.OpImage
public Raster computeTile(int tileX, int tileY)
computeTile
in class javax.media.jai.OpImage
public Raster getTile(int tileX, int tileY)
getTile
in interface RenderedImage
getTile
in class javax.media.jai.OpImage
tileX
- The X index of the tile.tileY
- The Y index of the tile.public Rectangle mapSourceRect(Rectangle sourceRect, int sourceIndex)
mapSourceRect
in class javax.media.jai.OpImage
sourceRect
- the Rectangle in source coordinates.sourceIndex
- the index of the source image.IllegalArgumentException
- if the source index is
negative or greater than that of the last source.IllegalArgumentException
- if sourceRect is null.public Rectangle mapDestRect(Rectangle destRect, int sourceIndex)
mapDestRect
in class javax.media.jai.OpImage
destRect
- the Rectangle in destination coordinates.sourceIndex
- the index of the source image.IllegalArgumentException
- if the source index is
negative or greater than that of the last source.IllegalArgumentException
- if destRect is null.Copyright © 2006–2018 GeoSolutions. All rights reserved.