|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.awt.Dimension
A class to encapsulate a width and a height Dimension.
| Field Summary | |
int |
height
The height dimension. |
int |
width
The width dimension. |
| Constructor Summary | |
Dimension()
Constructs a Dimension with a 0 width and 0 height. |
|
Dimension(Dimension d)
Constructs a Dimension and initializes it to the specified value. |
|
Dimension(int width,
int height)
Constructs a Dimension and initializes it to the specified width and specified height. |
|
| Method Summary | |
String |
toString()
Returns the String representation of this Dimension's values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int width
public int height
| Constructor Detail |
public Dimension()
public Dimension(Dimension d)
d - the specified dimension for the width and height values
public Dimension(int width,
int height)
width - the specified width dimensionheight - the specified height dimension| Method Detail |
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||