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.
-
iOhioPosition()
- Null constructor for iOhioPosition.
-
iOhioPosition(int, int)
- Constructor for iOhioPosition.
-
getColumn()
- Returns the column coordinate.
-
getRow()
- Returns the row coordinate.
-
setColumn(int)
- Sets the column coordinate.
-
setRow(int)
- Sets the row coordinate.
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
iOhioPosition
public iOhioPosition()
- Null constructor for iOhioPosition. The row and column properties are
initialized to 0.
getRow
public int getRow()
- Returns the row coordinate.
- Returns:
- The row coordinate
getColumn
public int getColumn()
- Returns the column coordinate.
- Returns:
- The column coordinate
setRow
public void setRow(int newRow)
- Sets the row coordinate.
- Parameters:
- newRow - The new row coordinate
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