|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.lwuit.geom.Dimension
public class Dimension
Utility class that holds a width and height that represents a dimension of a component or element
Constructor Summary | |
---|---|
Dimension()
Creates a new instance of Dimension |
|
Dimension(Dimension d)
Creates a new instance of Dimension with a predefine dimension |
|
Dimension(int width,
int height)
CCreates a new instance of Dimension with width and height |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object arg0)
|
int |
getHeight()
Return the height of the dimension |
int |
getWidth()
Returns the width of the dimension |
int |
hashCode()
|
void |
setHeight(int height)
Set the height of the dimension |
void |
setWidth(int width)
Set the width of the dimension |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Dimension()
public Dimension(Dimension d)
d
- Dimension to copypublic Dimension(int width, int height)
width
- the dimention widthheight
- the dimention heightMethod Detail |
---|
public void setWidth(int width)
width
- the dimention widthpublic void setHeight(int height)
height
- the dimention heightpublic int getWidth()
public int getHeight()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object arg0)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |