| Properties |
| public double |
getHeight() Details
Returns the height of this Dimension in double
precision.
|
| public void |
setSize(double width, double height) Details
Sets the size of this Dimension object to
the specified width and height in double precision.
Note that if width or height
are larger than Integer.MAX_VALUE, they will
be reset to Integer.MAX_VALUE.
| width | the new width for the Dimension object |
| height | the new height for the Dimension object |
| since | 1.2 |
|
| public void |
setSize(Dimension d) Details
Sets the size of this Dimension object to the specified size.
This method is included for completeness, to parallel the
setSize method defined by Component.
| d | the new size for this Dimension object |
| since | 1.1 |
| See also | getSize, setSize |
|
| public void |
setSize(int width, int height) Details
Sets the size of this Dimension object
to the specified width and height.
This method is included for completeness, to parallel the
setSize method defined by Component.
| width | the new width for this Dimension object |
| height | the new height for this Dimension object |
| since | 1.1 |
| See also | getSize, setSize |
|
| public Dimension |
getSize() Details
Gets the size of this Dimension object.
This method is included for completeness, to parallel the
getSize method defined by Component.
| return | the size of this dimension, a new instance of
Dimension with the same width and height |
| since | 1.1 |
| See also | setSize, getSize |
|
| public double |
getWidth() Details
Returns the width of this Dimension in double
precision.
|