Region.createRoundedRectangular

Overview | Methods | This Package | All Packages

Region.createRoundedRectangular

Creates a rounded rectangular region based on a specified bounding rectangle.

Syntax

public static final Region createRoundedRectangular( Rectangle rect, int radius )

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

Parameters

rect

The rectangular area within which to draw the rounded rectangle.

x

The x-coordinate of the rectangular area.

y

The y-coordinate of the rectangular area.

width

The width of the rectangular area.

height

The height of the rectangular area.

radius

The radius of the ellipse used to draw the rounded corners.

Return Value

Returns a new Region object that defines the rounded rectangle.