Graphics.fillRect
Class Overview | Class Members | This Package | All Packages
Syntax
public abstract void fillRect( int x**, int** y**, int** width**, int** height )
Parameters
- x
the x coordinate of the rectangle to be filled. - y
the y coordinate of the rectangle to be filled. - width
the width of the rectangle to be filled. - height
the height of the rectangle to be filled.
Description
Fills the specified rectangle. The left and right edges of the rectangle are at x and x + width - 1. The top and bottom edges are at y and y + height - 1. The resulting rectangle covers an area width pixels wide by height pixels tall. The rectangle is filled using the graphics context's current color.