Methods Summary |
---|
public java.lang.Object | clone()Creates a new object of the same class as this object.
try {
return super.clone();
} catch (CloneNotSupportedException e) {
// this shouldn't happen, since we are Cloneable
throw new InternalError();
}
|
public abstract double | getHeight()Returns the height of this Dimension in double
precision.
|
public abstract double | getWidth()Returns the width of this Dimension in double
precision.
|
public abstract void | setSize(double width, double height)Sets the size of this Dimension object to the
specified width and height.
This method is included for completeness, to parallel the
{@link java.awt.Component#getSize getSize} method of
{@link java.awt.Component}.
|
public void | setSize(java.awt.geom.Dimension2D d)Sets the size of this Dimension2D object to
match the specified size.
This method is included for completeness, to parallel the
getSize method of Component .
setSize(d.getWidth(), d.getHeight());
|