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

int
getX()
Retrieve the x coordinate for the Point.
int
getY()
Retrieve the y coordinate for the Point.
void
setX(int x)
Set the x coordinate for the Point.
void
setY(int y)
Set the y coordinate for the Point.

Constructor Details

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 Details

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 -