org.apache.batik.ext.awt.image.renderable

Class FloodRable8Bit

public class FloodRable8Bit extends AbstractRable implements FloodRable

Concrete implementation of the FloodRable interface. This fills the input image with a given flood paint
Constructor Summary
FloodRable8Bit(Rectangle2D floodRegion, Paint floodPaint)
Method Summary
RenderedImagecreateRendering(RenderContext rc)
Create a RenderedImage that is filled with the current flood fill paint
Rectangle2DgetBounds2D()
PaintgetFloodPaint()
Get the flood fill paint.
Rectangle2DgetFloodRegion()
Returns the flood region
voidsetFloodPaint(Paint paint)
Set the flood fill paint
voidsetFloodRegion(Rectangle2D floodRegion)
Sets the flood region

Constructor Detail

FloodRable8Bit

public FloodRable8Bit(Rectangle2D floodRegion, Paint floodPaint)

Parameters: floodRegion region to be filled with floodPaint floodPaint paint to use to flood the floodRegion

Method Detail

createRendering

public RenderedImage createRendering(RenderContext rc)
Create a RenderedImage that is filled with the current flood fill paint

Parameters: rc The current render context

Returns: A RenderedImage with the flood fill

getBounds2D

public Rectangle2D getBounds2D()

getFloodPaint

public Paint getFloodPaint()
Get the flood fill paint.

Returns: the paint used to flood fill the input image

getFloodRegion

public Rectangle2D getFloodRegion()
Returns the flood region

setFloodPaint

public void setFloodPaint(Paint paint)
Set the flood fill paint

Parameters: paint The paint to use when flood filling the input image

setFloodRegion

public void setFloodRegion(Rectangle2D floodRegion)
Sets the flood region
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.