Class CellLocation
- java.lang.Object
-
- adams.data.spreadsheet.cellfinder.CellLocation
-
- All Implemented Interfaces:
Serializable
public class CellLocation extends Object implements Serializable
Container object for a cell location (row and column).- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CellLocation(int row, int col)Initializes the position.CellLocation(String position)Initializes the position with a cell string, like "A1".
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()Returns the stored column.intgetRow()Returns the stored row.StringtoPosition()Returns the cell location as position string, like "A1".StringtoString()Returns a short description of the location.
-
-
-
Method Detail
-
getRow
public int getRow()
Returns the stored row.- Returns:
- the 0-based row
-
getColumn
public int getColumn()
Returns the stored column.- Returns:
- the 0-based column
-
toPosition
public String toPosition()
Returns the cell location as position string, like "A1".- Returns:
- the position
-
-