|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.jai.PlanarImage
javax.media.jai.OpImage
it.geosolutions.jaiext.translate.TranslateIntOpImage
public final class TranslateIntOpImage
An OpImage to translate an image by in integral number of pixels.
Field Summary |
---|
Fields inherited from class javax.media.jai.OpImage |
---|
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler |
Fields inherited from class javax.media.jai.PlanarImage |
---|
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width |
Constructor Summary | |
---|---|
TranslateIntOpImage(RenderedImage source,
Map config,
int transX,
int transY)
Construct an TranslateIntOpImage. |
Method Summary | |
---|---|
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. |
Methods inherited from class javax.media.jai.OpImage |
---|
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 |
Methods inherited from class javax.media.jai.PlanarImage |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |