Overview | Methods | This Package | All Packages
Fills a specified area of the display with the current or specified brush.
Syntax
public final void fill( Rectangle rc )
public final void fill( int x, int y, int width, int height )
public final void fill( Rectangle rc, Brush brush )
public final void fill( int x, int y, int width, int height, Brush brush )
public final void fill( Rectangle rc, Brush br, RasterOp op )
public final void fill( int x, int y, int width, int height, Brush brush, RasterOp op )
public final void fill( Region region )
public final void fill( Region region, Brush brush )
Parameters
rc
A Rectangle object that specifies the area to fill.
x
The x-coordinate of the rectangle to fill.
y
The y-coordinate of the rectangle to fill.
width
The width of the rectangle to fill.
height
The height of the rectangle to fill.
brush
A Brush object that specifies the brush to use to fill the area.
op
A RasterOp object that describes how to fill the specified area.
region
A Region object that specifies the area to fill.
See Also floodFill