Class Coordinate

java.lang.Object
  extended by Coordinate

public class Coordinate
extends Object


Constructor Summary
Coordinate(int theRow, int theCol)
          Generates a two-dimensional coordinate
 
Method Summary
 int getCol()
          Returns the coordinate's column value
 int getRow()
          Returns the coordinate's row value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Coordinate

public Coordinate(int theRow,
                  int theCol)
Generates a two-dimensional coordinate

Parameters:
theRow - The coordinate's row
theCol - the coordinate's column
Method Detail

getRow

public int getRow()
Returns the coordinate's row value

Returns:
The row of the coordinate

getCol

public int getCol()
Returns the coordinate's column value

Returns:
The column of the coordinate