|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.ext.awt.image.renderable.AbstractRable
org.apache.batik.ext.awt.image.renderable.ClipRable8Bit
public class ClipRable8Bit
ClipRable implementation
Field Summary | |
---|---|
protected Shape |
clipPath
The node who's outline specifies our mask. |
protected boolean |
useAA
|
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 | |
---|---|
ClipRable8Bit(Filter src,
Shape clipPath)
|
|
ClipRable8Bit(Filter src,
Shape clipPath,
boolean useAA)
|
Method Summary | |
---|---|
RenderedImage |
createRendering(RenderContext rc)
|
Rectangle2D |
getBounds2D()
Pass-through: returns the source's bounds |
Shape |
getClipPath()
Returns the Shape that the cliprable will use to define the clip path. |
Filter |
getSource()
This returns the current image being masked by the mask node. |
boolean |
getUseAntialiasedClip()
Resturns true if the default behaviour should be to use anti-aliased clipping. |
void |
setClipPath(Shape clipPath)
Set the clip path to use. |
void |
setSource(Filter src)
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 Detail |
---|
protected boolean useAA
protected Shape clipPath
Constructor Detail |
---|
public ClipRable8Bit(Filter src, Shape clipPath)
public ClipRable8Bit(Filter src, Shape clipPath, boolean useAA)
Method Detail |
---|
public void setSource(Filter src)
setSource
in interface ClipRable
src
- The Image to be masked.public Filter getSource()
getSource
in interface ClipRable
public void setUseAntialiasedClip(boolean useAA)
setUseAntialiasedClip
in interface ClipRable
public boolean getUseAntialiasedClip()
getUseAntialiasedClip
in interface ClipRable
public void setClipPath(Shape clipPath)
setClipPath
in interface ClipRable
clipPath
- The clip path to usepublic Shape getClipPath()
getClipPath
in interface ClipRable
public Rectangle2D getBounds2D()
getBounds2D
in interface Filter
getBounds2D
in class AbstractRable
public RenderedImage createRendering(RenderContext rc)
createRendering
in interface RenderableImage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |