Overview | Methods | Fields | ThisPackage | All Packages
Adjusts the location of the rectangle by the specified amount.
Syntax
public void offset( Point pos )
public void offset( int x, int y )
Parameters
pos
A Point object that specifies the amount of vertical and horizontal space to move the rectangle.
x
The amount of space, in logical coordinates, to move the rectangle horizontally.
y
The amount of space, in logical coordinates, to move the rectangle vertically.
See Also setBounds