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

Class ClipRable8Bit

public class ClipRable8Bit extends AbstractRable implements ClipRable

ClipRable implementation
Field Summary
protected ShapeclipPath
The node who's outline specifies our mask.
protected booleanuseAA
Constructor Summary
ClipRable8Bit(Filter src, Shape clipPath)
ClipRable8Bit(Filter src, Shape clipPath, boolean useAA)
Method Summary
RenderedImagecreateRendering(RenderContext rc)
Rectangle2DgetBounds2D()
Pass-through: returns the source's bounds
ShapegetClipPath()
Returns the Shape that the cliprable will use to define the clip path.
FiltergetSource()
This returns the current image being masked by the mask node.
booleangetUseAntialiasedClip()
Resturns true if the default behaviour should be to use anti-aliased clipping.
voidsetClipPath(Shape clipPath)
Set the clip path to use.
voidsetSource(Filter src)
The source to be masked by the mask node.
voidsetUseAntialiasedClip(boolean useAA)
Set the default behaviour of anti-aliased clipping. for this clip object.

Field Detail

clipPath

protected Shape clipPath
The node who's outline specifies our mask.

useAA

protected boolean useAA

Constructor Detail

ClipRable8Bit

public ClipRable8Bit(Filter src, Shape clipPath)

ClipRable8Bit

public ClipRable8Bit(Filter src, Shape clipPath, boolean useAA)

Method Detail

createRendering

public RenderedImage createRendering(RenderContext rc)

getBounds2D

public Rectangle2D getBounds2D()
Pass-through: returns the source's bounds

getClipPath

public Shape getClipPath()
Returns the Shape that the cliprable will use to define the clip path.

Returns: The shape that defines the clip path.

getSource

public Filter getSource()
This returns the current image being masked by the mask node.

Returns: The image to mask

getUseAntialiasedClip

public boolean getUseAntialiasedClip()
Resturns true if the default behaviour should be to use anti-aliased clipping.

setClipPath

public void setClipPath(Shape clipPath)
Set the clip path to use. The path will be filled with opaque white.

Parameters: clipPath The clip path to use

setSource

public void setSource(Filter src)
The source to be masked by the mask node.

Parameters: src The Image to be masked.

setUseAntialiasedClip

public void setUseAntialiasedClip(boolean useAA)
Set the default behaviour of anti-aliased clipping. for this clip object.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.