Package org.apache.poi.ss.formula
Class CacheAreaEval
- java.lang.Object
-
- org.apache.poi.ss.formula.eval.AreaEvalBase
-
- org.apache.poi.ss.formula.CacheAreaEval
-
- All Implemented Interfaces:
AreaEval,ValueEval,SheetRange,ThreeDEval,TwoDEval
public final class CacheAreaEval extends AreaEvalBase
-
-
Constructor Summary
Constructors Constructor Description CacheAreaEval(int firstRow, int firstColumn, int lastRow, int lastColumn, ValueEval[] values)CacheAreaEval(AreaI ptg, ValueEval[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TwoDEvalgetColumn(int columnIndex)ValueEvalgetRelativeValue(int relativeRowIndex, int relativeColumnIndex)ValueEvalgetRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex)TwoDEvalgetRow(int rowIndex)AreaEvaloffset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)Creates anAreaEvaloffset by a relative amount from from the upper left cell of this areajava.lang.StringtoString()-
Methods inherited from class org.apache.poi.ss.formula.eval.AreaEvalBase
contains, containsColumn, containsRow, getAbsoluteValue, getFirstColumn, getFirstRow, getFirstSheetIndex, getHeight, getLastColumn, getLastRow, getLastSheetIndex, getValue, getValue, getWidth, isColumn, isRow, isSubTotal
-
-
-
-
Method Detail
-
getRelativeValue
public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex)
- Specified by:
getRelativeValuein interfaceAreaEval- Specified by:
getRelativeValuein classAreaEvalBase- Returns:
- the ValueEval from within this area at the specified relativeRowIndex and
relativeColumnIndex. Never
null(possiblyBlankEval). The specified indexes should relative to the top left corner of this area.
-
getRelativeValue
public ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex)
- Specified by:
getRelativeValuein classAreaEvalBase
-
offset
public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)
Description copied from interface:AreaEvalCreates anAreaEvaloffset by a relative amount from from the upper left cell of this area
-
getRow
public TwoDEval getRow(int rowIndex)
- Parameters:
rowIndex- relative row index (zero based)- Returns:
- a single row
TwoDEval
-
getColumn
public TwoDEval getColumn(int columnIndex)
- Parameters:
columnIndex- relative column index (zero based)- Returns:
- a single column
TwoDEval
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-