java.awt.geom
public abstract class Dimension2D extends Object implements Cloneable
Since: 1.2
UNKNOWN: updated to 1.4
Constructor Summary | |
---|---|
protected | Dimension2D()
The default constructor. |
Method Summary | |
---|---|
Object | clone()
Create a new dimension of the same run-time type with the same contents
as this one.
|
abstract double | getHeight()
Get the height of this dimension. |
abstract double | getWidth()
Get the width of this dimension. |
abstract void | setSize(double w, double h)
Set the size of this dimension to the requested values. |
void | setSize(Dimension2D d)
Set the size of this dimension to the requested value. |
Returns: the clone
Throws: OutOfMemoryError If there is not enough memory available.
Since: 1.2
Returns: the height
Returns: the width
Parameters: w the new width h the new height
Parameters: d the dimension containing the new values
Throws: NullPointerException if d is null