Package io.keikai.range.formula
Interface AreaEval
Reference to a rectangular area of cells. Combines the absolute
grid coordinates (
getFirstRow(), getFirstColumn(), …)
with a TwoDEval-style relative-coordinate accessor.
Replaces org.apache.poi.ss.formula.eval.AreaEval.
- Since:
- 7.0.0
-
Method Summary
Modifier and TypeMethodDescriptiongetAbsoluteValue(int row, int col) Cell value at absolute row/column coordinates within the sheet.intintintintintintgetRelativeValue(int relativeRowIndex, int relativeColumnIndex) Cell value at coordinates relative to the area's top-left.booleanisColumn()booleanisRow()
-
Method Details
-
getFirstRow
int getFirstRow()- Returns:
- inclusive 0-based starting row.
-
getFirstColumn
int getFirstColumn()- Returns:
- inclusive 0-based starting column.
-
getLastRow
int getLastRow()- Returns:
- inclusive 0-based ending row.
-
getLastColumn
int getLastColumn()- Returns:
- inclusive 0-based ending column.
-
getFirstSheetIndex
int getFirstSheetIndex()- Returns:
- inclusive starting sheet index.
-
getLastSheetIndex
int getLastSheetIndex()- Returns:
- inclusive ending sheet index.
-
getAbsoluteValue
Cell value at absolute row/column coordinates within the sheet.- Throws:
IllegalArgumentException- if the coordinates are outside this area
-
getRelativeValue
Cell value at coordinates relative to the area's top-left. Equivalent toTwoDEval.getValue(int, int). -
isRow
boolean isRow() -
isColumn
boolean isColumn()
-