Rectangle.setBounds
Class Overview | Class Members |
This Package |
All Packages
public void setBounds( Rectangle r )
Parameters
- r
- a rectangle.
Description
Sets the bounding rectangle of this rectangle to match
the specified rectangle.
This method is included for completeness, to parallel the
setBounds method of Component.
See Also
setBounds
public void setBounds( int x,
int y,
int width,
int height )
Parameters
- x
- the new x coordinate for the top-left
corner of this rectangle.
- y
- the new y coordinate for the top-left
corner of this rectangle.
- width
- the new width for this rectangle.
- height
- the new height for this rectangle.
Description
Sets the bounding rectangle of this rectangle to the specified
values for x, y, width,
and height.
This method is included for completeness, to parallel the
setBounds method of Component.
See Also
setBounds