Sets the size of this Rectangle to match the
specified Dimension.
This method is included for completeness, to parallel the
setSize method of Component.
d | the new size for the Dimension object |
java.awt.Component.setSize(java.awt.Dimension), getSize
Diagram: Rectangular Shapes