|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.rubecula.util.Range
|
+--com.rubecula.spreadsheet.CellRange
This class models a range of cells either rows or columns.
| Field Summary |
| Fields inherited from class com.rubecula.util.Range |
_End, _Start, $ALL, $NEG, $NONNEG, $NONPOS, $POS, $ZERO |
| Constructor Summary | |
CellRange(CellRange range)
Constructor to create a cell range which is a copy of another cell range. |
|
CellRange(int row)
Constructor for single row. |
|
CellRange(int index,
boolean isColumn)
Constructor for cell row or column. |
|
CellRange(int start,
int end)
Constructor for row range. |
|
CellRange(int start,
int end,
boolean isColumn)
Constructor for cell range. |
|
CellRange(Range range,
boolean isColumn)
Constructor to create a cell range from a range and the isColumn indicator. |
|
| Method Summary | |
Range |
intersection(CellRange that)
Yield the intersection of this range and that range. |
Range |
union(CellRange that)
Yield the union of this cell range and that cell range. |
static CellRange |
valueOf(java.lang.String string)
Factory method to create a new CellRange from the given string. |
static CellRange |
valueOf(java.lang.String start,
java.lang.String end)
Factory method to create a new CellRange from the given start and end. |
| Methods inherited from class com.rubecula.util.Range |
getEnd, getStart, includes, intersection, isValid, length, substring, union |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CellRange(int start,
int end,
boolean isColumn)
start - the index of the starting cell.end - the index of the ending cell.isColumn - true if the range is a column range rather than a row range.
public CellRange(int index,
boolean isColumn)
index - the index of the row or columnisColumn - true if this will represent a column rather than a row.
public CellRange(int start,
int end)
start - the index of the starting row.end - the index of the ending row.public CellRange(int row)
row - the index of the row.
public CellRange(Range range,
boolean isColumn)
range - the range to copy.isColumn - true if this will represent a column rather than a row.public CellRange(CellRange range)
range - the cell range to copy.| Method Detail |
public static CellRange valueOf(java.lang.String start,
java.lang.String end)
start - of the form letter(s) OR digit(s)end - of the form letter(s) OR digit(s)
public static CellRange valueOf(java.lang.String string)
string - of the form letter(s)[:letter(s)]* OR
digit(s)[:digit(s)]*
where []* indicates optional.
public Range intersection(CellRange that)
that - a cell range which is to be intersected with this.
public Range union(CellRange that)
that - a cell range which is to be unioned with this.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||