edu.umd.cs.jazz.util
Class ZDimension
java.lang.Object
|
+--java.awt.geom.Dimension2D
|
+--edu.umd.cs.jazz.util.ZDimension
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class ZDimension
- extends java.awt.geom.Dimension2D
- implements java.io.Serializable
Implemenation of Dimension2D that uses doubles.
- See Also:
- Serialized Form
|
Constructor Summary |
ZDimension()
ZDimension constructor comment. |
ZDimension(double width,
double height)
ZDimension constructor comment. |
|
Method Summary |
double |
getHeight()
Returns the height of this Dimension in double
precision. |
double |
getWidth()
Returns the width of this Dimension in double
precision. |
void |
setSize(double width,
double height)
Sets the size of this Dimension object to the
specified width and height. |
| Methods inherited from class java.awt.geom.Dimension2D |
clone, setSize |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZDimension
public ZDimension()
- ZDimension constructor comment.
ZDimension
public ZDimension(double width,
double height)
- ZDimension constructor comment.
getHeight
public double getHeight()
- Returns the height of this
Dimension in double
precision.
- Overrides:
getHeight in class java.awt.geom.Dimension2D
- Returns:
- the height of this
Dimension.
getWidth
public double getWidth()
- Returns the width of this
Dimension in double
precision.
- Overrides:
getWidth in class java.awt.geom.Dimension2D
- Returns:
- the width of this
Dimension.
setSize
public 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
getSize method of
Component.
- Overrides:
setSize in class java.awt.geom.Dimension2D
- Parameters:
width - the new width for the Dimension
objectheight - the new height for the Dimension
object
Copyright © 2001 by University of Maryland, College Park, MD 20742, USA All rights reserved.