com.conradroche.matra.data
Class CursorLocation
java.lang.Object
|
+--com.conradroche.matra.data.CursorLocation
- public class CursorLocation
- extends Object
Class to hold the location of the read cursor
within the data.
- Author:
- Conrad Roche
Constructor Summary |
CursorLocation(int row,
int clm,
int offset)
CursorLocation Constructor. |
Method Summary |
int |
getColumn()
Returns the column number of the cursor. |
int |
getOffset()
Returns the offset from the beginning
of the data stream. |
int |
getRow()
Returns the row number of the cursor. |
String |
toString()
Returns a string representation
of the cursor location. |
CursorLocation
public CursorLocation(int row,
int clm,
int offset)
- CursorLocation Constructor.
- Parameters:
row
- The row number.clm
- The column number.offset
- The offset from the start of the data.
getRow
public int getRow()
- Returns the row number of the cursor.
- Returns:
- The row number.
getColumn
public int getColumn()
- Returns the column number of the cursor.
- Returns:
- The column number.
getOffset
public int getOffset()
- Returns the offset from the beginning
of the data stream.
- Returns:
- The offset.
toString
public String toString()
- Returns a string representation
of the cursor location.
- Overrides:
toString
in class Object
- Returns:
- String reporesentation of the location.