|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.Dimension
Encapsulates a width and height. Replacement for java.awt.Dimension.
Field Summary | |
int |
height
|
int |
width
|
Constructor Summary | |
Dimension()
Constructs a new Dimension |
|
Dimension(Dimension s)
Constructs a new Dimension whose width and height are the same as for the specified Dimension. |
|
Dimension(java.awt.Dimension d)
Constructs a new Dimension from an AWT dimension. |
|
Dimension(int width,
int height)
Constructs a new Dimension of the specified width and height. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if this Dimension is equal to another one. |
int |
getHeight()
Returns height. |
int |
getWidth()
Returns width. |
int |
hashCode()
Returns the hash code for this Dimension |
java.lang.String |
toString()
Returns formatted string for this Dimension. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public int width
public int height
Constructor Detail |
public Dimension()
public Dimension(Dimension s)
public Dimension(int width, int height)
public Dimension(java.awt.Dimension d)
Method Detail |
public int getWidth()
public int getHeight()
public int hashCode()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |