org.apache.batik.ext.awt.image.rendered

Class TranslateRed

public class TranslateRed extends AbstractRed

This is a special case of an Affine that only contains integer translations, this allows it to do it's work by simply changing the coordinate system of the tiles.
Field Summary
protected intdeltaX
protected intdeltaY
Constructor Summary
TranslateRed(CachableRed cr, int xloc, int yloc)
Construct an instance of TranslateRed
Method Summary
WritableRastercopyData(WritableRaster wr)
RastergetData()
RastergetData(Rectangle rect)
intgetDeltaX()
The delata translation in x (absolute loc is available from getMinX())
intgetDeltaY()
The delata translation in y (absolute loc is available from getMinY())
ObjectgetProperty(String name)
String[]getPropertyNames()
CachableRedgetSource()
fetch the source image for this node.
RastergetTile(int tileX, int tileY)

Field Detail

deltaX

protected int deltaX

deltaY

protected int deltaY

Constructor Detail

TranslateRed

public TranslateRed(CachableRed cr, int xloc, int yloc)
Construct an instance of TranslateRed

Parameters: xloc The new x coordinate of cr.getMinX(). yloc The new y coordinate of cr.getMinY().

Method Detail

copyData

public WritableRaster copyData(WritableRaster wr)

getData

public Raster getData()

getData

public Raster getData(Rectangle rect)

getDeltaX

public int getDeltaX()
The delata translation in x (absolute loc is available from getMinX())

getDeltaY

public int getDeltaY()
The delata translation in y (absolute loc is available from getMinY())

getProperty

public Object getProperty(String name)

getPropertyNames

public String[] getPropertyNames()

getSource

public CachableRed getSource()
fetch the source image for this node.

getTile

public Raster getTile(int tileX, int tileY)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.