public class FloodRable8Bit extends AbstractRable implements FloodRable
props, srcs, stamp
Constructor and Description |
---|
FloodRable8Bit(java.awt.geom.Rectangle2D floodRegion,
java.awt.Paint floodPaint) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.RenderedImage |
createRendering(java.awt.image.renderable.RenderContext rc)
Create a RenderedImage that is filled with the current
flood fill paint
|
java.awt.geom.Rectangle2D |
getBounds2D()
Returns the bounds of the current image.
|
java.awt.Paint |
getFloodPaint()
Get the flood fill paint.
|
java.awt.geom.Rectangle2D |
getFloodRegion()
Returns the flood region
|
void |
setFloodPaint(java.awt.Paint paint)
Set the flood fill paint
|
void |
setFloodRegion(java.awt.geom.Rectangle2D floodRegion)
Sets the flood region
|
createDefaultRendering, createScaledRendering, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependencyRegion, getDirtyRegion, getTimeStamp
public FloodRable8Bit(java.awt.geom.Rectangle2D floodRegion, java.awt.Paint floodPaint)
floodRegion
- region to be filled with floodPaintfloodPaint
- paint to use to flood the floodRegionpublic void setFloodPaint(java.awt.Paint paint)
setFloodPaint
in interface FloodRable
paint
- The paint to use when flood filling the input imagepublic java.awt.Paint getFloodPaint()
getFloodPaint
in interface FloodRable
public java.awt.geom.Rectangle2D getBounds2D()
Filter
getBounds2D
in interface Filter
getBounds2D
in class AbstractRable
public java.awt.geom.Rectangle2D getFloodRegion()
getFloodRegion
in interface FloodRable
public void setFloodRegion(java.awt.geom.Rectangle2D floodRegion)
setFloodRegion
in interface FloodRable
floodRegion
- region to flood with floodPaintpublic java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
createRendering
in interface java.awt.image.renderable.RenderableImage
rc
- The current render contextCopyright © 2022 Apache Software Foundation. All Rights Reserved.