|
||||||||||
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<Rectangle>
com.sibvisions.rad.ui.awt.impl.AwtRectangle
public class AwtRectangle
An AwtRectangle
specifies an area in a coordinate space that is
enclosed by the AwtRectangle
object's top-left point
(x, y) in the coordinate space, its width, and its height.
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
resource |
Constructor Summary | |
---|---|
AwtRectangle(int pX,
int pY,
int pWidth,
int pHeight)
Constructs a new AwtRectangle whose top-left corner is
specified as (x , y ) and whose width and height
are specified by the arguments of the same name. |
|
AwtRectangle(Rectangle pRectangle)
Creates an instance of AwtRectangle based on
a java.awt.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 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 AwtRectangle(Rectangle pRectangle)
AwtRectangle
based on
a java.awt.Rectangle
.
pRectangle
- java.awt.RectangleRectangle
public AwtRectangle(int pX, int pY, int pWidth, int pHeight)
AwtRectangle
whose top-left corner is
specified as (x
, y
) and whose width and height
are specified by the arguments of the same name.
pX
- the specified x coordinatepY
- the specified y coordinatepWidth
- the width of the AwtRectangle
pHeight
- the height of the AwtRectangle
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 |