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$
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) PaintPaint to use to flood the floodRegion(package private) Rectangle2DRegion to fill with floodPaintFields inherited from class AbstractRable
props, srcs, stampFields inherited from interface 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 regionvoidsetFloodPaint(Paint paint) Set the flood fill paintvoidsetFloodRegion(Rectangle2D floodRegion) Sets the flood regionMethods 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
-
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:
setFloodPaintin interfaceFloodRable- Parameters:
paint- The paint to use when flood filling the input image
-
getFloodPaint
Get the flood fill paint.- Specified by:
getFloodPaintin interfaceFloodRable- Returns:
- the paint used to flood fill the input image
-
getBounds2D
Description copied from interface:FilterReturns the bounds of the current image. This should be 'in sync' with getMinX, getMinY, getWidth, getHeight- Specified by:
getBounds2Din interfaceFilter- Overrides:
getBounds2Din classAbstractRable
-
getFloodRegion
Returns the flood region- Specified by:
getFloodRegionin interfaceFloodRable
-
setFloodRegion
Sets the flood region- Specified by:
setFloodRegionin interfaceFloodRable- Parameters:
floodRegion- region to flood with floodPaint
-
createRendering
Create a RenderedImage that is filled with the current flood fill paint- Specified by:
createRenderingin interfaceRenderableImage- Parameters:
rc- The current render context- Returns:
- A RenderedImage with the flood fill
-