All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.geom.Dimension2D
java.lang.Object
|
+----java.awt.geom.Dimension2D
- public abstract class Dimension2D
- extends Object
A class to encapsulate a width and a height Dimension.
This class is only the abstract superclass for all objects which
store a 2D dimension.
The actual storage representation of the sizes is left to
the subclass.
Dimension2D()
-
getHeight()
- Returns the height of this dimension in double precision.
getWidth()
- Returns the width of this dimension in double precision.
setSize(Dimension2D)
- Set the size of this Dimension object to match the specified size.
setSize(double, double)
- Set the size of this Dimension object to the specified width
and height.
Dimension2D
protected Dimension2D()
getWidth
public abstract double getWidth()
- Returns the width of this dimension in double precision.
getHeight
public abstract double getHeight()
- Returns the height of this dimension in double precision.
setSize
public abstract void setSize(double width,
double height)
- Set the size of this Dimension object to the specified width
and height.
This method is included for completeness, to parallel the
getSize method of Component.
- Parameters:
- width - the new width for the Dimension object
- height - the new height for the Dimension object
setSize
public void setSize(Dimension2D d)
- Set the size of this Dimension object to match the specified size.
This method is included for completeness, to parallel the
getSize method of Component.
- Parameters:
- d - the new size for the Dimension object
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature