Overview | Methods | This Package | All Packages
Creates a rectangular region based on a specified bounding rectangle.
Syntax
public static final Region createRectangular( int x, int y, int width, int height )
public static final Region createRectangular( Rectangle rect )
Parameters
x
The x-coordinate of the bounding rectangle.
y
The y-coordinate of the bounding rectangle.
width
The width of the bounding rectangle.
height
The height of the bounding rectangle.
rect
A Rectangle object that specifies the bounding rectangle.
Return Value
Returns a new Region object based on the specified rectangle.
See Also createElliptical, createPolygonal