javax.rad.genui
Class UIPoint

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

public class UIPoint
extends UIResource<IPoint>
implements IPoint

Platform and technology independent point.


Field Summary
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Constructor Summary
  UIPoint()
          Creates a new instance of UIPoint with x=0 and y=0.
  UIPoint(int pX, int pY)
          Creates a new instance of UIPoint with the given x and y.
protected UIPoint(IPoint pPoint)
          Creates a new instance of UIPoint with the given point.
 
Method Summary
 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 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

UIPoint

public UIPoint()
Creates a new instance of UIPoint with x=0 and y=0.

See Also:
IPoint

UIPoint

protected UIPoint(IPoint pPoint)
Creates a new instance of UIPoint with the given point.

Parameters:
pPoint - the point
See Also:
IPoint

UIPoint

public UIPoint(int pX,
               int pY)
Creates a new instance of UIPoint with the given x and y.

Parameters:
pX - the x value
pY - the y value
See Also:
IPoint
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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.