|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.dtv.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(Dimension d)
Creates a new instance of Dimension with parameters taken from an instance of java.awt.Dimension. |
|
Dimension(int width,
int height)
Creates a new instance of Dimension with width and height. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Returns the height of the dimension. |
int |
getWidth()
Returns the width of the dimension. |
void |
setHeight(int height)
Set the height of the dimension. |
void |
setWidth(int width)
Set the width of the dimension. |
String |
toString()
Returns the printable form of this Dimension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Dimension()
public Dimension(Dimension d)
d - Dimension to copy.public Dimension(Dimension d)
java.awt.Dimension.
This is a convenience constructor for improvement of the AWT integration.
d - java.awt.Dimension instance to take data from.
public Dimension(int width,
int height)
width - the dimension width.height - the dimension height.| Method Detail |
|---|
public void setWidth(int width)
width - the dimension width.getWidth()public void setHeight(int height)
height - the dimension height.getHeight()public int getWidth()
setWidth(int)public int getHeight()
setHeight(int)public String toString()
toString in class Object
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||