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

public abstract Class AreaEvalBase

extends Object
implements AreaEval
Class Inheritance
All Implemented Interfaces
org.apache.poi.ss.formula.eval.AreaEval, org.apache.poi.ss.formula.ThreeDEval, org.apache.poi.ss.formula.SheetRange, org.apache.poi.ss.formula.TwoDEval, org.apache.poi.ss.formula.eval.ValueEval
Known Direct Subclasses
org.apache.poi.ss.formula.CacheAreaEval, org.apache.poi.ss.formula.LazyAreaEval
Imports
org.apache.poi.ss.formula.SheetRange, org.apache.poi.ss.formula.ptg.AreaI

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int
private final int
private final int
private final int
private final int
private final int

Constructor Summary

AccessConstructor and Description
protected
AreaEvalBase(SheetRange sheets, int firstRow, int firstColumn, int lastRow, int lastColumn)

protected
AreaEvalBase(int firstRow, int firstColumn, int lastRow, int lastColumn)

protected
protected

Method Summary

Modifier and TypeMethod and Description
public final boolean
contains(int row, int col)

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

returns true if the cell at row and col specified as absolute indexes in the sheet is contained in this area.

public final boolean
containsColumn(int col)

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

returns true if the specified col is in range

public final boolean
containsRow(int row)

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

returns true if the specified row is in range

public final ValueEval
public final int
getFirstColumn()

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

returns the 0-based index of the first col in this area.

public final int
getFirstRow()

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

returns the 0-based index of the first row in this area.

public int
public int
public final int
getLastColumn()

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

returns the 0-based index of the last col in this area.

public final int
getLastRow()

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

returns the 0-based index of the last row in this area.

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

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

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

public final ValueEval
getValue(int
relative row index (zero based)
row
,
int
relative column index (zero based)
col
)

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

public final ValueEval
getValue(int
sheet index (zero based)
sheetIndex
,
int
relative row index (zero based)
row
,
int
relative column index (zero based)
col
)

Implements org.apache.poi.ss.formula.ThreeDEval.getValue.

public int
public final boolean
public final boolean
public boolean

Returns:

false by default, meaning all rows are calculated
isRowHidden
(int rowIndex)

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

public boolean

Returns:

whether cell at rowIndex and columnIndex is a subtotal. By default return false which means 'don't care about subtotals'
isSubTotal
(int rowIndex, int columnIndex)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_firstColumnback to summary
private final int _firstColumn
_firstRowback to summary
private final int _firstRow
_firstSheetback to summary
private final int _firstSheet
_lastColumnback to summary
private final int _lastColumn
_lastRowback to summary
private final int _lastRow
_lastSheetback to summary
private final int _lastSheet
_nColumnsback to summary
private final int _nColumns
_nRowsback to summary
private final int _nRows

Constructor Detail

AreaEvalBaseback to summary
protected AreaEvalBase(SheetRange sheets, int firstRow, int firstColumn, int lastRow, int lastColumn)
AreaEvalBaseback to summary
protected AreaEvalBase(int firstRow, int firstColumn, int lastRow, int lastColumn)
AreaEvalBaseback to summary
protected AreaEvalBase(AreaI ptg)
AreaEvalBaseback to summary
protected AreaEvalBase(AreaI ptg, SheetRange sheets)

Method Detail

containsback to summary
public final boolean contains(int row, int col)

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

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

returns true if the cell at row and col specified as absolute indexes in the sheet is contained in this area.

Annotations
@Override
containsColumnback to summary
public final boolean containsColumn(int col)

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

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

returns true if the specified col is in range

Annotations
@Override
containsRowback to summary
public final boolean containsRow(int row)

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

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

returns true if the specified row is in range

Annotations
@Override
getAbsoluteValueback to summary
public final ValueEval getAbsoluteValue(int row, int col)

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

Returns:ValueEval

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

the ValueEval from within this area at the specified row and col index. Never null (possibly BlankEval). The specified indexes should be absolute indexes in the sheet and not relative indexes within the area.

Annotations
@Override
getFirstColumnback to summary
public final int getFirstColumn()

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

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

returns the 0-based index of the first col in this area.

Annotations
@Override
getFirstRowback to summary
public final int getFirstRow()

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

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

returns the 0-based index of the first row in this area.

Annotations
@Override
getFirstSheetIndexback to summary
public int getFirstSheetIndex()

Implements org.apache.poi.ss.formula.SheetRange.getFirstSheetIndex.

Annotations
@Override
getHeightback to summary
public int getHeight()

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

Annotations
@Override
getLastColumnback to summary
public final int getLastColumn()

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

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

returns the 0-based index of the last col in this area.

Annotations
@Override
getLastRowback to summary
public final int getLastRow()

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

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

returns the 0-based index of the last row in this area.

Annotations
@Override
getLastSheetIndexback to summary
public int getLastSheetIndex()

Implements org.apache.poi.ss.formula.SheetRange.getLastSheetIndex.

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

Redeclares 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 abstract ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex)
getValueback to summary
public final ValueEval getValue(int row, int col)

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

Parameters
row:int

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

relative row index (zero based)

col:int

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

relative column index (zero based)

Returns:ValueEval

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

element at the specified row and column position

Annotations
@Override
getValueback to summary
public final ValueEval getValue(int sheetIndex, int row, int col)

Implements org.apache.poi.ss.formula.ThreeDEval.getValue.

Parameters
sheetIndex:int

Doc from org.apache.poi.ss.formula.ThreeDEval.getValue.

sheet index (zero based)

row:int

Doc from org.apache.poi.ss.formula.ThreeDEval.getValue.

relative row index (zero based)

col:int

Doc from org.apache.poi.ss.formula.ThreeDEval.getValue.

relative column index (zero based)

Returns:ValueEval

Doc from org.apache.poi.ss.formula.ThreeDEval.getValue.

element at the specified row and column position

Annotations
@Override
getWidthback to summary
public int getWidth()

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

Annotations
@Override
isColumnback to summary
public final boolean isColumn()

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

Returns:boolean

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

true if the area has just a single column, this also includes the trivial case when the area has just a single cell.

Annotations
@Override
isRowback to summary
public final boolean isRow()

Overrides default org.apache.poi.ss.formula.TwoDEval.isRow.

Returns:boolean

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

true if the area has just a single row, this also includes the trivial case when the area has just a single cell.

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

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

Returns:boolean

false by default, meaning all rows are calculated

Annotations
@Override
See Also
org.apache.poi.ss.formula.TwoDEval#isRowHidden(int)
isSubTotalback to summary
public boolean isSubTotal(int rowIndex, int columnIndex)

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

Returns:boolean

whether cell at rowIndex and columnIndex is a subtotal. By default return false which means 'don't care about subtotals'

Annotations
@Override