cage.graphics
Class Point

java.lang.Object
  extended by cage.graphics.Point

public class Point
extends java.lang.Object

Represents a simple X,Y point as integers.

Version:
1.0 May. 11, 2005
Author:
Seth Marinello

Field Summary
 int x
          The x coord.
 int y
          The y coord.
 
Constructor Summary
Point()
          Instantiates a new point.
Point(int x, int y)
          Instantiates a new point with given X, Y values.
 
Method Summary
 int getX()
          Gets the x.
 int getY()
          Gets the y.
 void setX(int xCoord)
          Sets the x.
 void setY(int yCoord)
          Sets the y.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x
The x coord.


y

public int y
The y coord.

Constructor Detail

Point

public Point()
Instantiates a new point.


Point

public Point(int x,
             int y)
Instantiates a new point with given X, Y values.

Parameters:
x - the x
y - the y
Method Detail

setX

public void setX(int xCoord)
Sets the x.

Parameters:
xCoord - the new x

setY

public void setY(int yCoord)
Sets the y.

Parameters:
yCoord - the new y

getX

public int getX()
Gets the x.

Returns:
the x

getY

public int getY()
Gets the y.

Returns:
the y

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object