Class Dimension
java.lang.Object
com.codename1.ui.geom.Dimension
Utility class that holds a width and height that represents a dimension of
a component or element
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Dimension
public Dimension()Creates a new instance of Dimension -
Dimension
Creates a new instance of Dimension with a predefine dimension
Parameters
d: Dimension to copy
-
Dimension
public Dimension(int width, int height) CCreates a new instance of Dimension with width and height
Parameters
-
width: the dimention width -
height: the dimention height
-
-
-
Method Details
-
getWidth
public int getWidth()Returns the width of the dimension
Returns
width of the dimension
-
setWidth
public void setWidth(int width) Set the width of the dimension
Parameters
width: the dimention width
-
getHeight
public int getHeight()Return the height of the dimension
Returns
height of the dimension
-
setHeight
public void setHeight(int height) Set the height of the dimension
Parameters
height: the dimention height
-
toString
-
hashCode
-
equals
-