Class ClipRable8Bit
java.lang.Object
org.apache.batik.ext.awt.image.renderable.AbstractRable
org.apache.batik.ext.awt.image.renderable.ClipRable8Bit
- All Implemented Interfaces:
RenderableImage, ClipRable, Filter
ClipRable implementation
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ShapeThe node who's outline specifies our mask.protected booleanFields inherited from class AbstractRable
props, srcs, stampFields inherited from interface RenderableImage
HINTS_OBSERVED -
Constructor Summary
ConstructorsConstructorDescriptionClipRable8Bit(Filter src, Shape clipPath) ClipRable8Bit(Filter src, Shape clipPath, boolean useAA) -
Method Summary
Modifier and TypeMethodDescriptionPass-through: returns the source's boundsReturns the Shape that the cliprable will use to define the clip path.This returns the current image being masked by the mask node.booleanResturns true if the default behaviour should be to use anti-aliased clipping.voidsetClipPath(Shape clipPath) Set the clip path to use.voidThe source to be masked by the mask node.voidsetUseAntialiasedClip(boolean useAA) Set the default behaviour of anti-aliased clipping.Methods inherited from class AbstractRable
createDefaultRendering, createScaledRendering, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touchMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Filter
getDependencyRegion, getDirtyRegion, getTimeStampMethods inherited from interface RenderableImage
createDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
-
Field Details
-
useAA
protected boolean useAA -
clipPath
The node who's outline specifies our mask.
-
-
Constructor Details
-
ClipRable8Bit
-
ClipRable8Bit
-
-
Method Details
-
setSource
-
getSource
-
setUseAntialiasedClip
public void setUseAntialiasedClip(boolean useAA) Set the default behaviour of anti-aliased clipping. for this clip object.- Specified by:
setUseAntialiasedClipin interfaceClipRable
-
getUseAntialiasedClip
public boolean getUseAntialiasedClip()Resturns true if the default behaviour should be to use anti-aliased clipping.- Specified by:
getUseAntialiasedClipin interfaceClipRable
-
setClipPath
Set the clip path to use. The path will be filled with opaque white.- Specified by:
setClipPathin interfaceClipRable- Parameters:
clipPath- The clip path to use
-
getClipPath
Returns the Shape that the cliprable will use to define the clip path.- Specified by:
getClipPathin interfaceClipRable- Returns:
- The shape that defines the clip path.
-
getBounds2D
Pass-through: returns the source's bounds- Specified by:
getBounds2Din interfaceFilter- Overrides:
getBounds2Din classAbstractRable
-
createRendering
- Specified by:
createRenderingin interfaceRenderableImage
-