org.apache.batik.ext.awt.image.renderable

Class AffineRable8Bit

public class AffineRable8Bit extends AbstractRable implements AffineRable, PaintRable

Concrete implementation of the AffineRable interface. This adjusts the input images coordinate system by a general affine
Constructor Summary
AffineRable8Bit(Filter src, AffineTransform affine)
Method Summary
RenderedImagecreateRendering(RenderContext rc)
AffineTransformgetAffine()
Get the Affine.
Rectangle2DgetBounds2D()
ShapegetDependencyRegion(int srcIndex, Rectangle2D outputRgn)
ShapegetDirtyRegion(int srcIndex, Rectangle2D inputRgn)
FiltergetSource()
Returns the source to be affine.
booleanpaintRable(Graphics2D g2d)
Should perform the equivilent action as createRendering followed by drawing the RenderedImage.
voidsetAffine(AffineTransform affine)
Set the affine transform.
voidsetSource(Filter src)
Sets the source to be affine.

Constructor Detail

AffineRable8Bit

public AffineRable8Bit(Filter src, AffineTransform affine)

Method Detail

createRendering

public RenderedImage createRendering(RenderContext rc)

getAffine

public AffineTransform getAffine()
Get the Affine.

Returns: the Affine transform currently in effect.

getBounds2D

public Rectangle2D getBounds2D()

getDependencyRegion

public Shape getDependencyRegion(int srcIndex, Rectangle2D outputRgn)

getDirtyRegion

public Shape getDirtyRegion(int srcIndex, Rectangle2D inputRgn)

getSource

public Filter getSource()
Returns the source to be affine.

paintRable

public boolean paintRable(Graphics2D g2d)
Should perform the equivilent action as createRendering followed by drawing the RenderedImage.

Parameters: g2d The Graphics2D to draw to.

Returns: true if the paint call succeeded, false if for some reason the paint failed (in which case a createRendering should be used).

setAffine

public void setAffine(AffineTransform affine)
Set the affine transform.

Parameters: affine the new Affine transform to apply.

setSource

public void setSource(Filter src)
Sets the source to be affine.

Parameters: src image to affine.

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.