Graphics.setClip

Overview | Methods | This Package | All Packages

Graphics.setClip

Sets the clipping region for this Graphics object to the specified rectangle.

Syntax

public final void setClip( Rectangle rect )

public final void setClip( int x, int y, int width, int height )

public final void setClip( Region region )

Parameters

rect

A Rectangle object that specifies the clipping region's coordinates.

x

The x-coordinate of the clipping region.

y

The y-coordinate of the clipping region.

width

The width of the clipping region.

height

The height of the clipping region.

region

A Region object that specifies the clipping region.

See Also   getClip