|
||||||||||
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.gvt.filter.MaskRable8Bit
public class MaskRable8Bit
MaskRable implementation
Field Summary | |
---|---|
protected java.awt.geom.Rectangle2D |
filterRegion
Region to which the mask applies |
protected GraphicsNode |
mask
The node who's outline specifies our mask. |
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 | |
---|---|
MaskRable8Bit(Filter src,
GraphicsNode mask,
java.awt.geom.Rectangle2D filterRegion)
|
Method Summary | |
---|---|
java.awt.image.RenderedImage |
createRendering(java.awt.image.renderable.RenderContext rc)
|
java.awt.geom.Rectangle2D |
getBounds2D()
Pass-through: returns the source's bounds |
java.awt.geom.Rectangle2D |
getFilterRegion()
The region to which this mask applies |
GraphicsNode |
getMaskNode()
Returns the Graphics node that the mask operation will use to define the masking image. |
Filter |
getSource()
This returns the current image being masked by the mask node. |
void |
setFilterRegion(java.awt.geom.Rectangle2D filterRegion)
Returns the filter region to which this mask applies |
void |
setMaskNode(GraphicsNode mask)
Set the masking image to that described by gn. |
void |
setSource(Filter src)
The source to be masked by the mask node. |
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 GraphicsNode mask
protected java.awt.geom.Rectangle2D filterRegion
Constructor Detail |
---|
public MaskRable8Bit(Filter src, GraphicsNode mask, java.awt.geom.Rectangle2D filterRegion)
Method Detail |
---|
public void setSource(Filter src)
setSource
in interface Mask
src
- The Image to be masked.public Filter getSource()
getSource
in interface Mask
public java.awt.geom.Rectangle2D getFilterRegion()
getFilterRegion
in interface Mask
public void setFilterRegion(java.awt.geom.Rectangle2D filterRegion)
setFilterRegion
in interface Mask
public void setMaskNode(GraphicsNode mask)
setMaskNode
in interface Mask
mask
- The graphics node that defines the mask image.public GraphicsNode getMaskNode()
getMaskNode
in interface Mask
public java.awt.geom.Rectangle2D getBounds2D()
getBounds2D
in interface Filter
getBounds2D
in class AbstractRable
public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
createRendering
in interface java.awt.image.renderable.RenderableImage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |