|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.genui.UIResource<IRectangle>
javax.rad.genui.UIRectangle
public class UIRectangle
Platform and technology independent rectangle.
Field Summary |
---|
Fields inherited from class javax.rad.genui.UIResource |
---|
uiResource |
Constructor Summary | |
---|---|
|
UIRectangle()
Creates a new instance of UIRectangle with x=0, y=0, with=0 and height=0. |
|
UIRectangle(int pX,
int pY,
int pWidth,
int pHeight)
Creates a new instance of IRectangle with the given x, y, width and height. |
|
UIRectangle(IPoint pPoint,
IDimension pDimension)
Creates a new instance of UIRectangle with the given IPoint and
IDimension . |
protected |
UIRectangle(IRectangle pRectangle)
Creates a new instance of UIRectangle with the given rectangle. |
Method Summary | |
---|---|
int |
getHeight()
The height of the IDimension . |
int |
getWidth()
The width of the IDimension . |
int |
getX()
The X coordinate of the upper-left corner of the IPoint . |
int |
getY()
The Y coordinate of the upper-left corner of the IPoint . |
void |
setHeight(int pHeight)
Sets the height of the IDimension . |
void |
setWidth(int pWidth)
Sets the width of the IDimension . |
void |
setX(int pX)
Sets the x coordinate of the IPoint . |
void |
setY(int pY)
Sets the y coordinate of the IPoint . |
Methods inherited from class javax.rad.genui.UIResource |
---|
equals, getResource, getUIResource, 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 UIRectangle()
UIRectangle
with x=0, y=0, with=0 and height=0.
IRectangle
protected UIRectangle(IRectangle pRectangle)
UIRectangle
with the given rectangle.
pRectangle
- the rectangleIRectangle
public UIRectangle(IPoint pPoint, IDimension pDimension)
UIRectangle
with the given IPoint
and
IDimension
.
pPoint
- the point valuepDimension
- the dimension valueIRectangle
,
IPoint
,
IDimension
public UIRectangle(int pX, int pY, int pWidth, int pHeight)
IRectangle
with the given x, y, width and height.
pX
- the x valuepY
- the y valuepWidth
- the widthpHeight
- the heightIRectangle
Method Detail |
---|
public int getX()
IPoint
.
getX
in interface IPoint
public void setX(int pX)
IPoint
.
setX
in interface IPoint
pX
- the x coordinatepublic int getY()
IPoint
.
getY
in interface IPoint
public void setY(int pY)
IPoint
.
setY
in interface IPoint
pY
- the y coordinatepublic 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 |