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.
(如果指定为工作表中绝对索引的 row 和 col 处的单元格包含在此区域中,则返回 true。)
|
boolean |
containsColumn(int col)
returns true if the specified col is in range
(如果指定的 col 在范围内,则返回 true)
|
boolean |
containsRow(int row)
returns true if the specified row is in range
(如果指定的行在范围内,则返回 true)
|
ValueEval |
getAbsoluteValue(int row, int col) |
int |
getFirstColumn()
returns the 0-based index of the first col in this area.
(返回此区域中第一个 col 的从 0 开始的索引。)
|
int |
getFirstRow()
returns the 0-based index of the first row in this area.
(返回此区域中第一行的从 0 开始的索引。)
|
int |
getFirstSheetIndex() |
int |
getHeight() |
int |
getLastColumn()
returns the 0-based index of the last col in this area.
(返回此区域中最后一个 col 的从 0 开始的索引。)
|
int |
getLastRow()
returns the 0-based index of the last row in this area.
(返回此区域中最后一行的从 0 开始的索引。)
|
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
(接口 AreaEval 中的 getFirstColumn)
public final int getFirstRow()
AreaEval
getFirstRow
in interface
AreaEval
(接口 AreaEval 中的 getFirstRow)
public final int getLastColumn()
AreaEval
getLastColumn
in interface
AreaEval
(接口 AreaEval 中的 getLastColumn)
public final int getLastRow()
AreaEval
getLastRow
in interface
AreaEval
(接口 AreaEval 中的 getLastRow)
public int getFirstSheetIndex()
getFirstSheetIndex
in interface
SheetRange
(接口 SheetRange 中的 getFirstSheetIndex)
public int getLastSheetIndex()
getLastSheetIndex
in interface
SheetRange
(接口 SheetRange 中的 getLastSheetIndex)
public final ValueEval getAbsoluteValue(int row, int col)
getAbsoluteValue
in interface
AreaEval
(接口 AreaEval 中的 getAbsoluteValue)
null
(possibly
BlankEval
). The specified indexes should be absolute indexes in the sheet and not relative indexes within the area.
(此区域内指定行和列索引处的 ValueEval。从不为空(可能是 BlankEval)。指定的索引应该是工作表中的绝对索引,而不是区域内的相对索引。)
public final boolean contains(int row, int col)
AreaEval
public final boolean containsRow(int row)
AreaEval
containsRow
in interface
AreaEval
(接口 AreaEval 中的 containsRow)
public final boolean containsColumn(int col)
AreaEval
containsColumn
in interface
AreaEval
(接口 AreaEval 中的 containsColumn)
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
(接口 ThreeDEval 中的 getValue)
sheetIndex
- sheet index (zero based)
(sheetIndex - 工作表索引(从零开始))
row
- relative row index (zero based)
(row - 相对行索引(从零开始))
col
- relative column index (zero based)
(col - 相对列索引(从零开始))
public abstract ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex)
getRelativeValue
in interface
AreaEval
(接口 AreaEval 中的 getRelativeValue)
null
(possibly
BlankEval
). The specified indexes should relative to the top left corner of this area.
(此区域内指定的 relativeRowIndex 和 relativeColumnIndex 处的 ValueEval。从不为空(可能是 BlankEval)。指定的索引应该相对于该区域的左上角。)
public abstract ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex)
public int getWidth()
public boolean isSubTotal(int rowIndex, int columnIndex)
isSubTotal
in interface
TwoDEval
(接口 TwoDEval 中的 isSubTotal)
public boolean isRowHidden(int rowIndex)
isRowHidden
in interface
TwoDEval
(isRowHidden 在接口 TwoDeval 中)
TwoDEval.isRowHidden(int)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.