Class FloodRable8Bit
- java.lang.Object
-
- org.apache.batik.ext.awt.image.renderable.AbstractRable
-
- org.apache.batik.ext.awt.image.renderable.FloodRable8Bit
-
- All Implemented Interfaces:
java.awt.image.renderable.RenderableImage,Filter,FloodRable
public class FloodRable8Bit extends AbstractRable implements 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
Fields Modifier and Type Field Description (package private) java.awt.PaintfloodPaintPaint to use to flood the floodRegion(package private) java.awt.geom.Rectangle2DfloodRegionRegion to fill with floodPaint-
Fields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
props, srcs, stamp
-
-
Constructor Summary
Constructors Constructor Description FloodRable8Bit(java.awt.geom.Rectangle2D floodRegion, java.awt.Paint floodPaint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.RenderedImagecreateRendering(java.awt.image.renderable.RenderContext rc)Create a RenderedImage that is filled with the current flood fill paintjava.awt.geom.Rectangle2DgetBounds2D()Returns the bounds of the current image.java.awt.PaintgetFloodPaint()Get the flood fill paint.java.awt.geom.Rectangle2DgetFloodRegion()Returns the flood regionvoidsetFloodPaint(java.awt.Paint paint)Set the flood fill paintvoidsetFloodRegion(java.awt.geom.Rectangle2D floodRegion)Sets the flood region-
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
-
-
-
-
Method Detail
-
setFloodPaint
public void setFloodPaint(java.awt.Paint paint)
Set the flood fill paint- Specified by:
setFloodPaintin interfaceFloodRable- Parameters:
paint- The paint to use when flood filling the input image
-
getFloodPaint
public java.awt.Paint getFloodPaint()
Get the flood fill paint.- Specified by:
getFloodPaintin interfaceFloodRable- Returns:
- the paint used to flood fill the input image
-
getBounds2D
public java.awt.geom.Rectangle2D 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
public java.awt.geom.Rectangle2D getFloodRegion()
Returns the flood region- Specified by:
getFloodRegionin interfaceFloodRable
-
setFloodRegion
public void setFloodRegion(java.awt.geom.Rectangle2D floodRegion)
Sets the flood region- Specified by:
setFloodRegionin interfaceFloodRable- Parameters:
floodRegion- region to flood with floodPaint
-
createRendering
public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
Create a RenderedImage that is filled with the current flood fill paint- Specified by:
createRenderingin interfacejava.awt.image.renderable.RenderableImage- Parameters:
rc- The current render context- Returns:
- A RenderedImage with the flood fill
-
-