explorer
Class CoordinateXY

java.lang.Object
  extended by explorer.CoordinateXY

public class CoordinateXY
extends java.lang.Object

The class represent a 2D coordinate (x,y)

Author:
andreamonaldini

Constructor Summary
CoordinateXY(int x, int y)
          Creates am (X,Y) coordinate
 
Method Summary
 int getX()
          Returns the x.
 int getY()
          Returns the y.
 void setX(int x)
          Sets the x.
 void setY(int y)
          Sets the y.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinateXY

public CoordinateXY(int x,
                    int y)
Creates am (X,Y) coordinate

Parameters:
x - The X coordinate
y - The Y coordinate
Method Detail

getX

public int getX()
Returns the x.

Returns:
Returns the x.

setX

public void setX(int x)
Sets the x.

Parameters:
x - The x to set.

getY

public int getY()
Returns the y.

Returns:
Returns the y.

setY

public void setY(int y)
Sets the y.

Parameters:
y - The y to set.