javax.rad.genui
Class UIRectangle

java.lang.Object
  extended by javax.rad.genui.UIResource<IRectangle>
      extended by javax.rad.genui.UIRectangle
All Implemented Interfaces:
IDimension, IPoint, IRectangle, IResource

public class UIRectangle
extends UIResource<IRectangle>
implements IRectangle

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

UIRectangle

public UIRectangle()
Creates a new instance of UIRectangle with x=0, y=0, with=0 and height=0.

See Also:
IRectangle

UIRectangle

protected UIRectangle(IRectangle pRectangle)
Creates a new instance of UIRectangle with the given rectangle.

Parameters:
pRectangle - the rectangle
See Also:
IRectangle

UIRectangle

public UIRectangle(IPoint pPoint,
                   IDimension pDimension)
Creates a new instance of UIRectangle with the given IPoint and IDimension.

Parameters:
pPoint - the point value
pDimension - the dimension value
See Also:
IRectangle, IPoint, IDimension

UIRectangle

public UIRectangle(int pX,
                   int pY,
                   int pWidth,
                   int pHeight)
Creates a new instance of IRectangle with the given x, y, width and height.

Parameters:
pX - the x value
pY - the y value
pWidth - the width
pHeight - the height
See Also:
IRectangle
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.