Creates a rectangular region based on a specified bounding rectangle.
public static final Region createRectangular( int x, int y, int width, int height )
public static final Region createRectangular( Rectangle rect )
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.
Returns a new Region object based on the specified rectangle.
See Also createElliptical, createPolygonal