com.sibvisions.rad.ui.awt.impl
Class AwtRectangle

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<Rectangle>
      extended by com.sibvisions.rad.ui.awt.impl.AwtRectangle
All Implemented Interfaces:
IDimension, IPoint, IRectangle, IResource

public class AwtRectangle
extends AwtResource<Rectangle>
implements IRectangle

An AwtRectangle specifies an area in a coordinate space that is enclosed by the AwtRectangle object's top-left point (xy) 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 (xy) 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

AwtRectangle

public AwtRectangle(Rectangle pRectangle)
Creates an instance of AwtRectangle based on a java.awt.Rectangle.

Parameters:
pRectangle - java.awt.Rectangle
See Also:
Rectangle

AwtRectangle

public AwtRectangle(int pX,
                    int pY,
                    int pWidth,
                    int pHeight)
Constructs a new AwtRectangle whose top-left corner is specified as (xy) and whose width and height are specified by the arguments of the same name.

Parameters:
pX - the specified x coordinate
pY - the specified y coordinate
pWidth - the width of the AwtRectangle
pHeight - the height of the AwtRectangle
Method Detail

getX

public int getX()
The X coordinate of the upper-left corner of the IPoint.

Specified by:
getX in interface IPoint
Returns:
the x coordinate.

setX

public void setX(int pX)
Sets the x coordinate of the IPoint.

Specified by:
setX in interface IPoint
Parameters:
pX - the x coordinate

getY

public int getY()
The Y coordinate of the upper-left corner of the IPoint.

Specified by:
getY in interface IPoint
Returns:
the y coordinate.

setY

public void setY(int pY)
Sets the y coordinate of the IPoint.

Specified by:
setY in interface IPoint
Parameters:
pY - the y coordinate

getWidth

public int getWidth()
The width of the IDimension.

Specified by:
getWidth in interface IDimension
Returns:
the width.

setWidth

public void setWidth(int pWidth)
Sets the width of the IDimension.

Specified by:
setWidth in interface IDimension
Parameters:
pWidth - the width

getHeight

public int getHeight()
The height of the IDimension.

Specified by:
getHeight in interface IDimension
Returns:
the height.

setHeight

public void setHeight(int pHeight)
Sets the height of the IDimension.

Specified by:
setHeight in interface IDimension
Parameters:
pHeight - the height


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.