Region.createElliptical

Overview | Methods | This Package | All Packages

Region.createElliptical

Creates an elliptical region based on a specified bounding rectangle.

Syntax

public static final Region createElliptical( Rectangle rect )

public static final Region createElliptical( int x, int y, int width, int height )

Parameters

rect

A Rectangle object that specifies the region's bounding rectangle.

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.

Return Value

Returns a Region object that defines the newly created elliptical region.