Region.offset

Overview | Methods | This Package | All Packages

Region.offset

Creates a new Region object which consists of this region, relocated by the specified offset.

Syntax

public final Region offset( Point point )

public final Region offset( int x, int y )

Parameters

point

A Point object that specifies the offset.

x

The amount by which to offset the region horizontally.

y

The amount by which to offset the region vertically.

Return Value

Returns a Region object that specifies the new region.