|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--gov.noaa.pmel.util.Dimension2D
A class to encapsulate a double width and a height.
| Field Summary | |
double |
height
|
double |
width
|
| Constructor Summary | |
Dimension2D()
|
|
Dimension2D(double width,
double height)
|
|
| Method Summary | |
boolean |
equals(Dimension2D d)
Test for equality. |
double |
getHeight()
Returns the height. |
double |
getWidth()
Returns the width. |
void |
setSize(Dimension2D d)
Set the size to match the specified size. |
void |
setSize(double width,
double height)
Set the size to the specified width and height. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double height
public double width
| Constructor Detail |
public Dimension2D()
public Dimension2D(double width,
double height)
| Method Detail |
public double getWidth()
public double getHeight()
public void setSize(double width,
double height)
Component.
width - the new widthheight - the new heightpublic void setSize(Dimension2D d)
Component.
d - the new sizepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(Dimension2D d)
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||