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

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<Point>
      extended by com.sibvisions.rad.ui.awt.impl.AwtPoint
All Implemented Interfaces:
IPoint, IResource

public class AwtPoint
extends AwtResource<Point>
implements IPoint

A point representing a location in (x, y) coordinate space, specified in integer precision.


Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
resource
 
Constructor Summary
AwtPoint(int pX, int pY)
          Creates an instance of AwtPoint at the specified (xy) location in the coordinate space.
AwtPoint(Point pPoint)
          Creates an instance of AwtPoint based on a java.awt.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 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

AwtPoint

public AwtPoint(Point pPoint)
Creates an instance of AwtPoint based on a java.awt.Point.

Parameters:
pPoint - java.awt.Point
See Also:
Point

AwtPoint

public AwtPoint(int pX,
                int pY)
Creates an instance of AwtPoint at the specified (xy) location in the coordinate space.

Parameters:
pX - the x coordinate
pY - the y coordinate
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.