public abstract class AreaPtgBase extends OperandPtg implements AreaI
AreaI.OffsetAreaCLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY| Modifier and Type | Method and Description |
|---|---|
byte |
getDefaultOperandClass() |
int |
getFirstColumn() |
short |
getFirstColumnRaw() |
int |
getFirstRow() |
int |
getLastColumn() |
short |
getLastColumnRaw() |
int |
getLastRow() |
boolean |
isFirstColRelative() |
boolean |
isFirstRowRelative() |
boolean |
isLastColRelative() |
boolean |
isLastRowRelative() |
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.
|
String |
toFormulaString()
return a string representation of this token alone
|
copy, isBaseTokencreatePtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, getSize, readTokens, serializePtgs, setClass, toString, writepublic void sortTopLeftToBottomRight()
For example, $E5:B$10 becomes B5:$E$10
public final int getFirstRow()
getFirstRow in interface AreaIpublic final void setFirstRow(int rowIx)
rowIx - number (0-based)public final int getLastRow()
getLastRow in interface AreaIpublic final void setLastRow(int rowIx)
rowIx - last row number in the areapublic final int getFirstColumn()
getFirstColumn in interface AreaIpublic final short getFirstColumnRaw()
public final boolean isFirstRowRelative()
public final void setFirstRowRelative(boolean rel)
rel - is relative or not.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 AreaIpublic final short getLastColumnRaw()
public final boolean isLastRowRelative()
public final void setLastRowRelative(boolean rel)
rel - true if the last row relative, else
falsepublic final boolean isLastColRelative()
public final void setLastColRelative(boolean rel)
public final void setLastColumn(int colIx)
public final void setLastColumnRaw(short column)
public String toFormulaString()
PtgtoFormulaString in class Ptgpublic byte getDefaultOperandClass()
getDefaultOperandClass in class PtgCopyright © 2010 - 2020 Adobe. All Rights Reserved