|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<Dimension>
com.sibvisions.rad.ui.awt.impl.AwtDimension
public class AwtDimension
The AwtDimension
class encapsulates the width and
height of a component (in integer precision) in a single object.
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
resource |
Constructor Summary | |
---|---|
AwtDimension(Dimension pDimension)
Creates an instance of AwtDimension based on
a Dimension . |
|
AwtDimension(int pWidth,
int pHeight)
Creates an instance of AwtDimension whose width
and height are the same as for the specified dimension. |
Method Summary | |
---|---|
int |
getHeight()
The height of the IDimension . |
int |
getWidth()
The width of the IDimension . |
void |
setHeight(int pHeight)
Sets the height of the IDimension . |
void |
setWidth(int pWidth)
Sets the width of the IDimension . |
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
equals, getResource, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Constructor Detail |
---|
public AwtDimension(Dimension pDimension)
AwtDimension
based on
a Dimension
.
pDimension
- java.awt.DimensionDimension
public AwtDimension(int pWidth, int pHeight)
AwtDimension
whose width
and height are the same as for the specified dimension.
pWidth
- the specified widthpHeight
- the specified heightMethod Detail |
---|
public int getWidth()
IDimension
.
getWidth
in interface IDimension
public void setWidth(int pWidth)
IDimension
.
setWidth
in interface IDimension
pWidth
- the widthpublic int getHeight()
IDimension
.
getHeight
in interface IDimension
public void setHeight(int pHeight)
IDimension
.
setHeight
in interface IDimension
pHeight
- the height
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |