Sets the bounding Rectangle of this
Rectangle to the specified
x, y, width,
and height.
This method is included for completeness, to parallel the
setBounds method of Component.
x | the new X coordinate for the upper-left
corner of this Rectangle | |
y | the new Y coordinate for the upper-left
corner of this Rectangle | |
width | the new width for this Rectangle | |
height | the new height for this Rectangle |
getBounds, java.awt.Component.setBounds(int, int, int, int)
Diagram: Rectangular Shapes