public abstract class AreaPtgBase extends OperandPtg implements AreaI
AreaI.OffsetArea
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
AreaPtgBase() |
protected |
AreaPtgBase(AreaPtgBase other) |
protected |
AreaPtgBase(AreaReference ar) |
protected |
AreaPtgBase(int firstRow, int lastRow, int firstColumn, int lastColumn, boolean firstRowRelative, boolean lastRowRelative, boolean firstColRelative, boolean lastColRelative) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
formatReferenceAsString() |
byte |
getDefaultOperandClass() |
int |
getFirstColumn() |
short |
getFirstColumnRaw() |
int |
getFirstRow() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getLastColumn() |
short |
getLastColumnRaw() |
int |
getLastRow() |
boolean |
isFirstColRelative() |
boolean |
isFirstRowRelative() |
boolean |
isLastColRelative() |
boolean |
isLastRowRelative() |
protected void |
readCoordinates(LittleEndianInput in) |
void |
setFirstColRelative(boolean rel)
set whether the first column is relative
(设置第一列是否是相对的)
|
void |
setFirstColumn(int colIx)
set the first column in the area
(设置区域的第一列)
|
void |
setFirstColumnRaw(int column)
set the first column irrespective of the bitmasks
(设置第一列而不考虑位掩码)
|
void |
setFirstRow(int rowIx)
sets the first row
(设置第一行)
|
void |
setFirstRowRelative(boolean rel)
sets the first row to relative or not
(将第一行设置为相对或不)
|
void |
setLastColRelative(boolean rel)
set whether the last column should be relative or not
(设置最后一列是否应该是相对的)
|
void |
setLastColumn(int colIx)
set the last column in the area
(设置区域的最后一列)
|
void |
setLastColumnRaw(short column)
set the last column irrespective of the bitmasks
(设置最后一列而不考虑位掩码)
|
void |
setLastRow(int rowIx) |
void |
setLastRowRelative(boolean rel)
set whether the last row is relative or not
(设置最后一行是否相对)
|
void |
sortTopLeftToBottomRight()
Sort the first and last row and columns in-place to the preferred (top left:bottom right) order Note: Sort only occurs when an instance is constructed or when this method is called.
(将第一行和最后一行和列原地排序为首选(左上:右下)顺序 注意:排序仅在构造实例或调用此方法时发生。)
|
java.lang.String |
toFormulaString()
return a string representation of this token alone
(单独返回此标记的字符串表示)
|
protected void |
writeCoordinates(LittleEndianOutput out) |
copy, isBaseToken
createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, getSid, getSize, readTokens, serializePtgs, setClass, toString, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericRecordType
protected AreaPtgBase()
protected AreaPtgBase(AreaPtgBase other)
protected AreaPtgBase(AreaReference ar)
protected AreaPtgBase(int firstRow, int lastRow, int firstColumn, int lastColumn, boolean firstRowRelative, boolean lastRowRelative, boolean firstColRelative, boolean lastColRelative)
public void sortTopLeftToBottomRight()
For example, $E5:B$10
becomes B5:$E$10
protected final void readCoordinates(LittleEndianInput in)
protected final void writeCoordinates(LittleEndianOutput out)
public final int getFirstRow()
getFirstRow
in interface
AreaI
(接口 AreaI 中的 getFirstRow)
public final void setFirstRow(int rowIx)
rowIx
- number (0-based)
(rowIx - 数字(从 0 开始))
public final int getLastRow()
getLastRow
in interface
AreaI
(接口 AreaI 中的 getLastRow)
public final void setLastRow(int rowIx)
rowIx
- last row number in the area
(rowIx - 该区域的最后一行编号)
public final int getFirstColumn()
getFirstColumn
in interface
AreaI
(接口AreaI中的getFirstColumn)
public final short getFirstColumnRaw()
public final boolean isFirstRowRelative()
public final void setFirstRowRelative(boolean rel)
rel
- is relative or not.
(rel - 是否相对。)
public final boolean isFirstColRelative()
public final void setFirstColRelative(boolean rel)
public final void setFirstColumn(int colIx)
public final void setFirstColumnRaw(int column)
public final int getLastColumn()
getLastColumn
in interface
AreaI
(接口AreaI中的getLastColumn)
public final short getLastColumnRaw()
public final boolean isLastRowRelative()
public final void setLastRowRelative(boolean rel)
rel
-
true
if the last row relative, else
false
(rel - 如果最后一行是相对的,则为 true,否则为 false)
public final boolean isLastColRelative()
public final void setLastColRelative(boolean rel)
public final void setLastColumn(int colIx)
public final void setLastColumnRaw(short column)
protected final java.lang.String formatReferenceAsString()
public java.lang.String toFormulaString()
Ptg
toFormulaString
in class
Ptg
(Ptg 类中的 toFormulaString)
public byte getDefaultOperandClass()
getDefaultOperandClass
in class
Ptg
(类 Ptg 中的 getDefaultOperandClass)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.