|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.poi.ss.formula.eval.AreaEvalBase
public abstract class AreaEvalBase
| Constructor Summary | |
|---|---|
protected |
AreaEvalBase(AreaI ptg)
|
protected |
AreaEvalBase(AreaI ptg,
SheetRange sheets)
|
protected |
AreaEvalBase(int firstRow,
int firstColumn,
int lastRow,
int lastColumn)
|
protected |
AreaEvalBase(SheetRange sheets,
int firstRow,
int firstColumn,
int lastRow,
int lastColumn)
|
| Method Summary | |
|---|---|
boolean |
contains(int row,
int col)
returns true if the cell at row and col specified as absolute indexes in the sheet is contained in this area. |
boolean |
containsColumn(int col)
returns true if the specified col is in range |
boolean |
containsRow(int row)
returns true if the specified row is in range |
ValueEval |
getAbsoluteValue(int row,
int col)
|
int |
getFirstColumn()
returns the 0-based index of the first col in this area. |
int |
getFirstRow()
returns the 0-based index of the first row in this area. |
int |
getFirstSheetIndex()
|
int |
getHeight()
|
int |
getLastColumn()
returns the 0-based index of the last col in this area. |
int |
getLastRow()
returns the 0-based index of the last row in this area. |
int |
getLastSheetIndex()
|
abstract ValueEval |
getRelativeValue(int relativeRowIndex,
int relativeColumnIndex)
|
abstract ValueEval |
getRelativeValue(int sheetIndex,
int relativeRowIndex,
int relativeColumnIndex)
|
ValueEval |
getValue(int row,
int col)
|
ValueEval |
getValue(int sheetIndex,
int row,
int col)
|
int |
getWidth()
|
boolean |
isColumn()
|
boolean |
isRow()
|
boolean |
isSubTotal(int rowIndex,
int columnIndex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.poi.ss.formula.eval.AreaEval |
|---|
offset |
| Methods inherited from interface org.apache.poi.ss.formula.TwoDEval |
|---|
getColumn, getRow |
| Constructor Detail |
|---|
protected AreaEvalBase(SheetRange sheets,
int firstRow,
int firstColumn,
int lastRow,
int lastColumn)
protected AreaEvalBase(int firstRow,
int firstColumn,
int lastRow,
int lastColumn)
protected AreaEvalBase(AreaI ptg)
protected AreaEvalBase(AreaI ptg,
SheetRange sheets)
| Method Detail |
|---|
public final int getFirstColumn()
AreaEval
getFirstColumn in interface AreaEvalpublic final int getFirstRow()
AreaEval
getFirstRow in interface AreaEvalpublic final int getLastColumn()
AreaEval
getLastColumn in interface AreaEvalpublic final int getLastRow()
AreaEval
getLastRow in interface AreaEvalpublic int getFirstSheetIndex()
getFirstSheetIndex in interface SheetRangepublic int getLastSheetIndex()
getLastSheetIndex in interface SheetRange
public final ValueEval getAbsoluteValue(int row,
int col)
getAbsoluteValue in interface AreaEvalnull (possibly BlankEval). The specified indexes should be absolute
indexes in the sheet and not relative indexes within the area.
public final boolean contains(int row,
int col)
AreaEval
contains in interface AreaEvalpublic final boolean containsRow(int row)
AreaEval
containsRow in interface AreaEvalpublic final boolean containsColumn(int col)
AreaEval
containsColumn in interface AreaEvalpublic final boolean isColumn()
isColumn in interface TwoDEvaltrue if the area has just a single column, this also includes
the trivial case when the area has just a single cell.public final boolean isRow()
isRow in interface TwoDEvaltrue if the area has just a single row, this also includes
the trivial case when the area has just a single cell.public int getHeight()
getHeight in interface AreaEvalgetHeight in interface TwoDEval
public final ValueEval getValue(int row,
int col)
getValue in interface TwoDEvalrow - relative row index (zero based)col - relative column index (zero based)
public final ValueEval getValue(int sheetIndex,
int row,
int col)
getValue in interface ThreeDEvalsheetIndex - sheet index (zero based)row - relative row index (zero based)col - relative column index (zero based)
public abstract ValueEval getRelativeValue(int relativeRowIndex,
int relativeColumnIndex)
getRelativeValue in interface AreaEvalnull (possibly BlankEval). The
specified indexes should relative to the top left corner of this area.
public abstract ValueEval getRelativeValue(int sheetIndex,
int relativeRowIndex,
int relativeColumnIndex)
public int getWidth()
getWidth in interface AreaEvalgetWidth in interface TwoDEval
public boolean isSubTotal(int rowIndex,
int columnIndex)
isSubTotal in interface TwoDEval
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||