Class ClipRable8Bit
- java.lang.Object
-
- org.apache.batik.ext.awt.image.renderable.AbstractRable
-
- org.apache.batik.ext.awt.image.renderable.ClipRable8Bit
-
public class ClipRable8Bit extends AbstractRable implements ClipRable
ClipRable implementation- Version:
- $Id: ClipRable8Bit.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
-
Constructor Summary
Constructors Constructor Description ClipRable8Bit(Filter src, java.awt.Shape clipPath)ClipRable8Bit(Filter src, java.awt.Shape clipPath, boolean useAA)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.RenderedImagecreateRendering(java.awt.image.renderable.RenderContext rc)java.awt.geom.Rectangle2DgetBounds2D()Pass-through: returns the source's boundsjava.awt.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(java.awt.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.-
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
-
-
-
-
Method Detail
-
setSource
public void setSource(Filter src)
The source to be masked by the mask node.
-
getSource
public Filter 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:
setUseAntialiasedClipin interfaceClipRable
-
getUseAntialiasedClip
public boolean getUseAntialiasedClip()
Resturns true if the default behaviour should be to use anti-aliased clipping.- Specified by:
getUseAntialiasedClipin interfaceClipRable
-
setClipPath
public void setClipPath(java.awt.Shape clipPath)
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
public java.awt.Shape 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
public java.awt.geom.Rectangle2D getBounds2D()
Pass-through: returns the source's bounds- Specified by:
getBounds2Din interfaceFilter- Overrides:
getBounds2Din classAbstractRable
-
createRendering
public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
- Specified by:
createRenderingin interfacejava.awt.image.renderable.RenderableImage
-
-