Package org.apache.poi.ss.formula
Class LazyAreaEval
- java.lang.Object
-
- org.apache.poi.ss.formula.eval.AreaEvalBase
-
- org.apache.poi.ss.formula.LazyAreaEval
-
- All Implemented Interfaces:
AreaEval,HyperlinkEval,ValueEval,SheetRange,ThreeDEval,TwoDEval
public final class LazyAreaEval extends AreaEvalBase implements HyperlinkEval
Provides Lazy Evaluation to 3D Ranges
-
-
Constructor Summary
Constructors Constructor Description LazyAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex, int lastColumnIndex, boolean firstRowRel, boolean firstColRel, boolean lastRowRel, boolean lastColRel, SheetRangeEvaluator evaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBookName()LazyAreaEvalgetColumn(int columnIndex)intgetDepth()HyperlinkgetHyperlink()Returns the associated hyperlink if this ValueEval is a label of the HYPERLINK function.StringgetLastSheetName()SheetRangeEvaluatorgetRefEvaluator()ValueEvalgetRelativeValue(int relativeRowIndex, int relativeColumnIndex)ValueEvalgetRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex)LazyAreaEvalgetRow(int rowIndex)StringgetSheetName()booleanisFiltered()booleanisHidden(int rowIndex, int columnIndex)booleanisRowHidden(int rowIndex)booleanisSubTotal(int rowIndex, int columnIndex)AreaEvaloffset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)Creates an AreaEval offset by a relative amount from the upper left cell of this areavoidsetHyperlink(Hyperlink hyperlink)Sets the associated hyperlink if this ValueEval is a label of the HYPERLINK function.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, isFirstColRelative, isFirstRowRelative, isLastColRelative, isLastRowRelative, isRow
-
-
-
-
Constructor Detail
-
LazyAreaEval
public LazyAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex, int lastColumnIndex, boolean firstRowRel, boolean firstColRel, boolean lastRowRel, boolean lastColRel, SheetRangeEvaluator evaluator)
-
-
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 an AreaEval offset by a relative amount from the upper left cell of this area
-
getRow
public LazyAreaEval getRow(int rowIndex)
-
getColumn
public LazyAreaEval getColumn(int columnIndex)
-
isSubTotal
public boolean isSubTotal(int rowIndex, int columnIndex)- Specified by:
isSubTotalin interfaceTwoDEval- Overrides:
isSubTotalin classAreaEvalBase- Returns:
- whether cell at rowIndex and columnIndex is a subtotal
-
setHyperlink
public void setHyperlink(Hyperlink hyperlink)
Description copied from interface:HyperlinkEvalSets the associated hyperlink if this ValueEval is a label of the HYPERLINK function.- Specified by:
setHyperlinkin interfaceHyperlinkEval- Parameters:
hyperlink- the associated hyperlink
-
getHyperlink
public Hyperlink getHyperlink()
Description copied from interface:HyperlinkEvalReturns the associated hyperlink if this ValueEval is a label of the HYPERLINK function.- Specified by:
getHyperlinkin interfaceHyperlinkEval- Returns:
- the associated hyperlink.
-
getDepth
public int getDepth()
-
isHidden
public boolean isHidden(int rowIndex, int columnIndex)
-
isRowHidden
public boolean isRowHidden(int rowIndex)
- Specified by:
isRowHiddenin interfaceTwoDEval- Overrides:
isRowHiddenin classAreaEvalBase- Returns:
- whether the row at rowIndex is hidden
- See Also:
TwoDEval.isRowHidden(int)
-
isFiltered
public boolean isFiltered()
- Specified by:
isFilteredin interfaceTwoDEval- Returns:
- true if the sheet of the area exists any auto filter or table filter which is applied.
- See Also:
Subtotal
-
getRefEvaluator
public SheetRangeEvaluator getRefEvaluator()
-
getBookName
public String getBookName()
-
getSheetName
public String getSheetName()
-
getLastSheetName
public String getLastSheetName()
-
-