Class MaskRable8Bit
java.lang.Object
org.apache.batik.ext.awt.image.renderable.AbstractRable
org.apache.batik.gvt.filter.MaskRable8Bit
- All Implemented Interfaces:
RenderableImage, Filter, Mask
MaskRable implementation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Rectangle2DRegion to which the mask appliesprotected GraphicsNodeThe node who's outline specifies our mask.Fields inherited from class AbstractRable
props, srcs, stampFields inherited from interface RenderableImage
HINTS_OBSERVED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPass-through: returns the source's boundsThe region to which this mask appliesReturns the Graphics node that the mask operation will use to define the masking image.This returns the current image being masked by the mask node.voidsetFilterRegion(Rectangle2D filterRegion) Returns the filter region to which this mask appliesvoidsetMaskNode(GraphicsNode mask) Set the masking image to that described by gn.voidThe source to be masked by the mask node.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
-
mask
The node who's outline specifies our mask. -
filterRegion
Region to which the mask applies
-
-
Constructor Details
-
MaskRable8Bit
-
-
Method Details
-
setSource
-
getSource
-
getFilterRegion
The region to which this mask applies- Specified by:
getFilterRegionin interfaceMask
-
setFilterRegion
Returns the filter region to which this mask applies- Specified by:
setFilterRegionin interfaceMask
-
setMaskNode
Set the masking image to that described by gn. If gn is an rgba image then the alpha is premultiplied and then the rgb is converted to alpha via the standard feColorMatrix rgb to luminance conversion. In the case of an rgb only image, just the rgb to luminance conversion is performed.- Specified by:
setMaskNodein interfaceMask- Parameters:
mask- The graphics node that defines the mask image.
-
getMaskNode
Returns the Graphics node that the mask operation will use to define the masking image.- Specified by:
getMaskNodein interfaceMask- Returns:
- The graphics node that defines the mask image.
-
getBounds2D
Pass-through: returns the source's bounds- Specified by:
getBounds2Din interfaceFilter- Overrides:
getBounds2Din classAbstractRable
-
createRendering
- Specified by:
createRenderingin interfaceRenderableImage
-