Class FloodRable8Bit
java.lang.Object
org.apache.batik.ext.awt.image.renderable.AbstractRable
org.apache.batik.ext.awt.image.renderable.FloodRable8Bit
- All Implemented Interfaces:
RenderableImage
,Filter
,FloodRable
Concrete implementation of the FloodRable interface.
This fills the input image with a given flood paint
- Version:
- $Id: FloodRable8Bit.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Paint
Paint to use to flood the floodRegion(package private) Rectangle2D
Region to fill with floodPaintFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a RenderedImage that is filled with the current flood fill paintReturns the bounds of the current image.Get the flood fill paint.Returns the flood regionvoid
setFloodPaint
(Paint paint) Set the flood fill paintvoid
setFloodRegion
(Rectangle2D floodRegion) Sets the flood regionMethods 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
-
floodPaint
Paint floodPaintPaint to use to flood the floodRegion -
floodRegion
Rectangle2D floodRegionRegion to fill with floodPaint
-
-
Constructor Details
-
FloodRable8Bit
- Parameters:
floodRegion
- region to be filled with floodPaintfloodPaint
- paint to use to flood the floodRegion
-
-
Method Details
-
setFloodPaint
Set the flood fill paint- Specified by:
setFloodPaint
in interfaceFloodRable
- Parameters:
paint
- The paint to use when flood filling the input image
-
getFloodPaint
Get the flood fill paint.- Specified by:
getFloodPaint
in interfaceFloodRable
- Returns:
- the paint used to flood fill the input image
-
getBounds2D
Description copied from interface:Filter
Returns the bounds of the current image. This should be 'in sync' with getMinX, getMinY, getWidth, getHeight- Specified by:
getBounds2D
in interfaceFilter
- Overrides:
getBounds2D
in classAbstractRable
-
getFloodRegion
Returns the flood region- Specified by:
getFloodRegion
in interfaceFloodRable
-
setFloodRegion
Sets the flood region- Specified by:
setFloodRegion
in interfaceFloodRable
- Parameters:
floodRegion
- region to flood with floodPaint
-
createRendering
Create a RenderedImage that is filled with the current flood fill paint- Specified by:
createRendering
in interfaceRenderableImage
- Parameters:
rc
- The current render context- Returns:
- A RenderedImage with the flood fill
-