com.sibvisions.rad.ui.qt.impl
Class QtPoint

java.lang.Object
  extended by com.sibvisions.rad.ui.qt.impl.QtResource<QPoint>
      extended by com.sibvisions.rad.ui.qt.impl.QtPoint
All Implemented Interfaces:
IPoint, IResource

public class QtPoint
extends QtResource<QPoint>
implements IPoint

A QtPoint represents a location in (x, y) coordinate space, specified in integer precision.


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

QtPoint

public QtPoint(QPoint pPoint)
Creates an instance of QtPoint based on a QPoint.

Parameters:
pPoint - QPoint

QtPoint

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

Parameters:
pX - the x coordinate
pY - the y coordinate
See Also:
QPoint.QPoint(int, int)
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.