| javax.media.jai.OpImage com.sun.media.jai.opimage.TranslateIntOpImage
TranslateIntOpImage | final public class TranslateIntOpImage extends OpImage (Code) | | An OpImage to translate an image by in integral number of pixels.
The translation is accomplished by simply shifting the tile
grid.
|
Constructor Summary | |
public | TranslateIntOpImage(RenderedImage source, Map config, int transX, int transY) Construct an TranslateIntOpImage. |
Method Summary | |
public Raster | computeTile(int tileX, int tileY) Override computeTile() simply to invoke getTile(). | public 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. | public Raster | getTile(int tileX, int tileY) Get a tile. | public 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.
Parameters: destRect - the Rectangle in destination coordinates. Parameters: sourceIndex - the index of the source image. | public 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.
Parameters: sourceRect - the Rectangle in source coordinates. Parameters: sourceIndex - the index of the source image. |
TranslateIntOpImage | public TranslateIntOpImage(RenderedImage source, Map config, int transX, int transY)(Code) | | Construct an TranslateIntOpImage.
Parameters: source - a RenderedImage. Parameters: config - Configurable attributes of the image includingconfiguration variables indexed byRenderingHints.Key s and image properties indexedby String s or CaselessStringKey s.This is simply forwarded to the superclass constructor. Parameters: transX - the number of pixels of horizontal translation. Parameters: transY - the number of pixels of vertical translation. |
computeTile | public Raster computeTile(int tileX, int tileY)(Code) | | Override computeTile() simply to invoke getTile(). Required
so that the TileScheduler may invoke computeTile().
|
computesUniqueTiles | public boolean computesUniqueTiles()(Code) | | Returns false as computeTile() invocations
return child Raster s of the RenderedImage
source and are therefore not unique objects in the global sense.
|
getTile | public Raster getTile(int tileX, int tileY)(Code) | | Get a tile.
Parameters: tileX - The X index of the tile. Parameters: tileY - The Y index of the tile. |
mapDestRect | public Rectangle mapDestRect(Rectangle destRect, int sourceIndex)(Code) | | 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.
Parameters: destRect - the Rectangle in destination coordinates. Parameters: sourceIndex - the index of the source image. a Rectangle indicating the required source region. throws: IllegalArgumentException - if the source index isnegative or greater than that of the last source. throws: IllegalArgumentException - if destRect is null. |
mapSourceRect | public Rectangle mapSourceRect(Rectangle sourceRect, int sourceIndex)(Code) | | Returns a conservative estimate of the destination region that
can potentially be affected by the pixels of a rectangle of a
given source.
Parameters: sourceRect - the Rectangle in source coordinates. Parameters: sourceIndex - the index of the source image. a Rectangle indicating the potentially affecteddestination region. or null if the region is unknown. throws: IllegalArgumentException - if the source index isnegative or greater than that of the last source. throws: IllegalArgumentException - if sourceRect is null. |
Methods inherited from javax.media.jai.OpImage | protected void addTileToCache(int tileX, int tileY, Raster tile)(Code)(Java Doc) public void cancelTiles(TileRequest request, Point[] tileIndices)(Code)(Java Doc) protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code)(Java Doc) protected void computeRect(PlanarImage[] sources, WritableRaster dest, Rectangle destRect)(Code)(Java Doc) public Raster computeTile(int tileX, int tileY)(Code)(Java Doc) public boolean computesUniqueTiles()(Code)(Java Doc) final protected WritableRaster createTile(int tileX, int tileY)(Code)(Java Doc) public synchronized void dispose()(Code)(Java Doc) public static int getExpandedNumBands(SampleModel sampleModel, ColorModel colorModel)(Code)(Java Doc) protected synchronized RasterFormatTag[] getFormatTags()(Code)(Java Doc) public int getOperationComputeType()(Code)(Java Doc) public Raster getTile(int tileX, int tileY)(Code)(Java Doc) public TileCache getTileCache()(Code)(Java Doc) public Object getTileCacheMetric()(Code)(Java Doc) public Point[] getTileDependencies(int tileX, int tileY, int sourceIndex)(Code)(Java Doc) protected Raster getTileFromCache(int tileX, int tileY)(Code)(Java Doc) public TileRecycler getTileRecycler()(Code)(Java Doc) public Raster[] getTiles(Point[] tileIndices)(Code)(Java Doc) public boolean hasExtender(int sourceIndex)(Code)(Java Doc) public Point2D mapDestPoint(Point2D destPt, int sourceIndex)(Code)(Java Doc) abstract public Rectangle mapDestRect(Rectangle destRect, int sourceIndex)(Code)(Java Doc) public Point2D mapSourcePoint(Point2D sourcePt, int sourceIndex)(Code)(Java Doc) abstract public Rectangle mapSourceRect(Rectangle sourceRect, int sourceIndex)(Code)(Java Doc) public void prefetchTiles(Point[] tileIndices)(Code)(Java Doc) public TileRequest queueTiles(Point[] tileIndices)(Code)(Java Doc) protected void recycleTile(Raster tile)(Code)(Java Doc) public void setTileCache(TileCache cache)(Code)(Java Doc) protected static Vector vectorize(RenderedImage image)(Code)(Java Doc) protected static Vector vectorize(RenderedImage image1, RenderedImage image2)(Code)(Java Doc) protected static Vector vectorize(RenderedImage image1, RenderedImage image2, RenderedImage image3)(Code)(Java Doc)
|
|
|