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 String
getBookName()
LazyAreaEval
getColumn(int columnIndex)
int
getDepth()
Hyperlink
getHyperlink()
Returns the associated hyperlink if this ValueEval is a label of the HYPERLINK function.String
getLastSheetName()
SheetRangeEvaluator
getRefEvaluator()
ValueEval
getRelativeValue(int relativeRowIndex, int relativeColumnIndex)
ValueEval
getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex)
LazyAreaEval
getRow(int rowIndex)
String
getSheetName()
boolean
isFiltered()
boolean
isHidden(int rowIndex, int columnIndex)
boolean
isRowHidden(int rowIndex)
boolean
isSubTotal(int rowIndex, int columnIndex)
AreaEval
offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)
Creates an AreaEval offset by a relative amount from the upper left cell of this areavoid
setHyperlink(Hyperlink hyperlink)
Sets the associated hyperlink if this ValueEval is a label of the HYPERLINK function.String
toString()
-
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:
getRelativeValue
in interfaceAreaEval
- Specified by:
getRelativeValue
in 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:
getRelativeValue
in classAreaEvalBase
-
offset
public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)
Description copied from interface:AreaEval
Creates 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:
isSubTotal
in interfaceTwoDEval
- Overrides:
isSubTotal
in classAreaEvalBase
- Returns:
- whether cell at rowIndex and columnIndex is a subtotal
-
setHyperlink
public void setHyperlink(Hyperlink hyperlink)
Description copied from interface:HyperlinkEval
Sets the associated hyperlink if this ValueEval is a label of the HYPERLINK function.- Specified by:
setHyperlink
in interfaceHyperlinkEval
- Parameters:
hyperlink
- the associated hyperlink
-
getHyperlink
public Hyperlink getHyperlink()
Description copied from interface:HyperlinkEval
Returns the associated hyperlink if this ValueEval is a label of the HYPERLINK function.- Specified by:
getHyperlink
in 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:
isRowHidden
in interfaceTwoDEval
- Overrides:
isRowHidden
in classAreaEvalBase
- Returns:
- whether the row at rowIndex is hidden
- See Also:
TwoDEval.isRowHidden(int)
-
isFiltered
public boolean isFiltered()
- Specified by:
isFiltered
in 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()
-
-