All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.ohio.iOhioPosition

java.lang.Object
   |
   +----org.ohio.iOhioPosition

public final class iOhioPosition
extends Object
Holds row and column coordinates. An iOhioPosition can be constructed using initial row and column coordinates or constructed with no values and have the row and column set later.


Constructor Index

 o iOhioPosition()
Null constructor for iOhioPosition.
 o iOhioPosition(int, int)
Constructor for iOhioPosition.

Method Index

 o getColumn()
Returns the column coordinate.
 o getRow()
Returns the row coordinate.
 o setColumn(int)
Sets the column coordinate.
 o setRow(int)
Sets the row coordinate.

Constructors

 o iOhioPosition
 public iOhioPosition(int initRow,
                      int initCol)
Constructor for iOhioPosition.

Parameters:
initRow - The initial value for the row coordinate
initCol - The initial value for the column coordinate
 o iOhioPosition
 public iOhioPosition()
Null constructor for iOhioPosition. The row and column properties are initialized to 0.

Methods

 o getRow
 public int getRow()
Returns the row coordinate.

Returns:
The row coordinate
 o getColumn
 public int getColumn()
Returns the column coordinate.

Returns:
The column coordinate
 o setRow
 public void setRow(int newRow)
Sets the row coordinate.

Parameters:
newRow - The new row coordinate
 o setColumn
 public void setColumn(int newCol)
Sets the column coordinate.

Parameters:
newCol - The new column coordinate

All Packages  Class Hierarchy  This Package  Previous  Next  Index