public abstract class AreaEvalBase extends java.lang.Object implements AreaEval
Modifier | Constructor and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
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 |
isRowHidden(int rowIndex) |
boolean |
isSubTotal(int rowIndex,
int columnIndex) |
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)
public final int getFirstColumn()
AreaEval
getFirstColumn
in interface AreaEval
public final int getFirstRow()
AreaEval
getFirstRow
in interface AreaEval
public final int getLastColumn()
AreaEval
getLastColumn
in interface AreaEval
public final int getLastRow()
AreaEval
getLastRow
in interface AreaEval
public int getFirstSheetIndex()
getFirstSheetIndex
in interface SheetRange
public int getLastSheetIndex()
getLastSheetIndex
in interface SheetRange
public final ValueEval getAbsoluteValue(int row, int col)
getAbsoluteValue
in interface AreaEval
null
(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
public final boolean containsRow(int row)
AreaEval
containsRow
in interface AreaEval
public final boolean containsColumn(int col)
AreaEval
containsColumn
in interface AreaEval
public final boolean isColumn()
public final boolean isRow()
public int getHeight()
public final ValueEval getValue(int row, int col)
public final ValueEval getValue(int sheetIndex, int row, int col)
getValue
in interface ThreeDEval
sheetIndex
- 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 AreaEval
null
(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()
public boolean isSubTotal(int rowIndex, int columnIndex)
isSubTotal
in interface TwoDEval
public boolean isRowHidden(int rowIndex)
isRowHidden
in interface TwoDEval
TwoDEval.isRowHidden(int)
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.