|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Dimension2D
source.ucregents.playground.physics.DimensionDouble
public class DimensionDouble
Dimension stores a pair of numbers as doubles and provides the means to modify them.
Constructor Summary | |
---|---|
DimensionDouble(DimensionDouble dd)
This constructs a copy of another DimensionDouble |
|
DimensionDouble(double w,
double h)
Constructs a new DimensionDouble with width w and height h. |
Method Summary | |
---|---|
double |
getHeight()
Accessor for the demsion's height |
double |
getWidth()
Accessor for the demsion's width |
void |
setSize(double w,
double h)
Mutator for both the width and the height of the dimension |
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 |
Constructor Detail |
---|
public DimensionDouble(DimensionDouble dd)
dd
- The dimension to copypublic DimensionDouble(double w, double h)
w
- The widthh
- The heightMethod Detail |
---|
public double getHeight()
getHeight
in class java.awt.geom.Dimension2D
public double getWidth()
getWidth
in class java.awt.geom.Dimension2D
public void setSize(double w, double h)
setSize
in class java.awt.geom.Dimension2D
w
- The new widthh
- The new height
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |