Top Description Fields Constructors Methods
org.apache.poi.ss.formula

pack-priv final Class LazyAreaEval

extends AreaEvalBase
Class Inheritance
Imports
org.apache.poi.ss.formula.eval.AreaEval, .AreaEvalBase, .ValueEval, org.apache.poi.ss.formula.ptg.AreaI, .AreaI.OffsetArea, org.apache.poi.ss.util.CellReference

Provides Lazy Evaluation to 3D Ranges

Field Summary

Modifier and TypeField and Description
private final SheetRangeEvaluator

Constructor Summary

AccessConstructor and Description
pack-priv
public
LazyAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex, int lastColumnIndex, SheetRangeEvaluator evaluator)

Method Summary

Modifier and TypeMethod and Description
public LazyAreaEval
getColumn(int
relative column index (zero based)
columnIndex
)

Implements org.apache.poi.ss.formula.TwoDEval.getColumn.

public ValueEval
public ValueEval
getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex)

Implements abstract org.apache.poi.ss.formula.eval.AreaEvalBase.getRelativeValue.

public LazyAreaEval
getRow(int
relative row index (zero based)
rowIndex
)

Implements org.apache.poi.ss.formula.TwoDEval.getRow.

public boolean

Returns:

whether the row at rowIndex is hidden
isRowHidden
(int rowIndex)

Overrides org.apache.poi.ss.formula.eval.AreaEvalBase.isRowHidden.

Implements org.apache.poi.ss.formula.TwoDEval.isRowHidden.

public boolean

Returns:

whether cell at rowIndex and columnIndex is a subtotal
isSubTotal
(int rowIndex, int columnIndex)

Overrides org.apache.poi.ss.formula.eval.AreaEvalBase.isSubTotal.

Implements org.apache.poi.ss.formula.TwoDEval.isSubTotal.

public AreaEval
offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)

Implements org.apache.poi.ss.formula.eval.AreaEval.offset.

Creates an AreaEval offset by a relative amount from the upper left cell of this area

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.poi.ss.formula.eval.AreaEvalBase:
containscontainsColumncontainsRowgetAbsoluteValuegetFirstColumngetFirstRowgetFirstSheetIndexgetHeightgetLastColumngetLastRowgetLastSheetIndexgetValuegetValuegetWidthisColumnisRow

Field Detail

_evaluatorback to summary
private final SheetRangeEvaluator _evaluator

Constructor Detail

LazyAreaEvalback to summary
pack-priv LazyAreaEval(AreaI ptg, SheetRangeEvaluator evaluator)
LazyAreaEvalback to summary
public LazyAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex, int lastColumnIndex, SheetRangeEvaluator evaluator)

Method Detail

getColumnback to summary
public LazyAreaEval getColumn(int columnIndex)

Implements org.apache.poi.ss.formula.TwoDEval.getColumn.

Parameters
columnIndex:int

Doc from org.apache.poi.ss.formula.TwoDEval.getColumn.

relative column index (zero based)

Returns:LazyAreaEval

Doc from org.apache.poi.ss.formula.TwoDEval.getColumn.

a single column TwoDEval

Annotations
@Override
getRelativeValueback to summary
public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex)

Implements abstract org.apache.poi.ss.formula.eval.AreaEvalBase.getRelativeValue.

Implements org.apache.poi.ss.formula.eval.AreaEval.getRelativeValue.

Returns:ValueEval

Doc from org.apache.poi.ss.formula.eval.AreaEval.getRelativeValue.

the ValueEval from within this area at the specified relativeRowIndex and relativeColumnIndex. Never null (possibly BlankEval). The specified indexes should relative to the top left corner of this area.

Annotations
@Override
getRelativeValueback to summary
public ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex)

Implements abstract org.apache.poi.ss.formula.eval.AreaEvalBase.getRelativeValue.

Annotations
@Override
getRowback to summary
public LazyAreaEval getRow(int rowIndex)

Implements org.apache.poi.ss.formula.TwoDEval.getRow.

Parameters
rowIndex:int

Doc from org.apache.poi.ss.formula.TwoDEval.getRow.

relative row index (zero based)

Returns:LazyAreaEval

Doc from org.apache.poi.ss.formula.TwoDEval.getRow.

a single row TwoDEval

Annotations
@Override
isRowHiddenback to summary
public boolean isRowHidden(int rowIndex)

Overrides org.apache.poi.ss.formula.eval.AreaEvalBase.isRowHidden.

Implements org.apache.poi.ss.formula.TwoDEval.isRowHidden.

Returns:boolean

whether the row at rowIndex is hidden

Annotations
@Override
isSubTotalback to summary
public boolean isSubTotal(int rowIndex, int columnIndex)

Overrides org.apache.poi.ss.formula.eval.AreaEvalBase.isSubTotal.

Implements org.apache.poi.ss.formula.TwoDEval.isSubTotal.

Returns:boolean

whether cell at rowIndex and columnIndex is a subtotal

Annotations
@Override
offsetback to summary
public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)

Implements org.apache.poi.ss.formula.eval.AreaEval.offset.

Doc from org.apache.poi.ss.formula.eval.AreaEval.offset.

Creates an AreaEval offset by a relative amount from the upper left cell of this area

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object