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: ClipRable8Bit.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Shape
The node who's outline specifies our mask.protected boolean
Fields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
props, srcs, stamp
Fields inherited from interface java.awt.image.renderable.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.boolean
Resturns true if the default behaviour should be to use anti-aliased clipping.void
setClipPath
(Shape clipPath) Set the clip path to use.void
The source to be masked by the mask node.void
setUseAntialiasedClip
(boolean useAA) Set the default behaviour of anti-aliased clipping.Methods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
createDefaultRendering, createScaledRendering, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touch
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getDependencyRegion, getDirtyRegion, getTimeStamp
Methods inherited from interface java.awt.image.renderable.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
The source to be masked by the mask node. -
getSource
This returns the current image being masked by the mask node. -
setUseAntialiasedClip
public void setUseAntialiasedClip(boolean useAA) Set the default behaviour of anti-aliased clipping. for this clip object.- Specified by:
setUseAntialiasedClip
in interfaceClipRable
-
getUseAntialiasedClip
public boolean getUseAntialiasedClip()Resturns true if the default behaviour should be to use anti-aliased clipping.- Specified by:
getUseAntialiasedClip
in interfaceClipRable
-
setClipPath
Set the clip path to use. The path will be filled with opaque white.- Specified by:
setClipPath
in interfaceClipRable
- Parameters:
clipPath
- The clip path to use
-
getClipPath
Returns the Shape that the cliprable will use to define the clip path.- Specified by:
getClipPath
in interfaceClipRable
- Returns:
- The shape that defines the clip path.
-
getBounds2D
Pass-through: returns the source's bounds- Specified by:
getBounds2D
in interfaceFilter
- Overrides:
getBounds2D
in classAbstractRable
-
createRendering
- Specified by:
createRendering
in interfaceRenderableImage
-