org.gnu.gdk

Class Point

public class Point extends MemStruct

Represents a point with x and y coordinates.
Constructor Summary
Point()
Construct an empty point
Point(int x, int y)
Construct a Point providing the x and y coordinates.
Method Summary
intgetX()
Retrieve the x coordinate for the Point.
intgetY()
Retrieve the y coordinate for the Point.
voidsetX(int x)
Set the x coordinate for the Point.
voidsetY(int y)
Set the y coordinate for the Point.

Constructor Detail

Point

public Point()
Construct an empty point

Point

public Point(int x, int y)
Construct a Point providing the x and y coordinates.

Parameters: x y

Method Detail

getX

public int getX()
Retrieve the x coordinate for the Point.

getY

public int getY()
Retrieve the y coordinate for the Point.

setX

public void setX(int x)
Set the x coordinate for the Point.

Parameters: x

setY

public void setY(int y)
Set the y coordinate for the Point.

Parameters: y