|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.rubecula.spreadsheet.Area
Class to model areas of a spreadsheet. An Area can be a rectangular set of cells; or a set of rows; or a set of columns. An Area can be unbounded in any direction.
| Constructor Summary | |
Area(CellRange rows,
CellRange columns)
|
|
Area(java.lang.String string)
|
|
| Method Summary | |
long |
area()
Get the area of this Area. |
CellRange |
getColumns()
|
CellRange |
getRows()
|
Area |
intersection(Area that)
Yield the intersection of this area and that area. |
boolean |
isValid()
Method to determine if this area is valid, i.e. |
Area |
union(Area that)
Yield the union of this area and that area. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Area(CellRange rows,
CellRange columns)
public Area(java.lang.String string)
| Method Detail |
public boolean isValid()
public Area intersection(Area that)
that - an area which is to be intersected with this.
public Area union(Area that)
that - an area which is to be unioned with this.
public long area()
public CellRange getRows()
public CellRange getColumns()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||