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(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 |
---|---|
boolean |
equals(java.lang.Object o) |
protected java.lang.String |
formatReferenceAsString() |
byte |
getDefaultOperandClass() |
int |
getFirstColumn() |
short |
getFirstColumnRaw() |
int |
getFirstRow() |
int |
getLastColumn() |
short |
getLastColumnRaw() |
int |
getLastRow() |
int |
hashCode() |
boolean |
isFirstColRelative() |
boolean |
isFirstRowRelative() |
boolean |
isLastColRelative() |
boolean |
isLastRowRelative() |
protected java.lang.RuntimeException |
notImplemented()
TODO - (May-2008) fix subclasses of AreaPtg 'AreaN~' which are used in shared formulas.
|
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
|
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, getSize, readTokens, serializePtgs, setClass, toString, write
protected AreaPtgBase()
protected AreaPtgBase(AreaReference ar)
protected AreaPtgBase(int firstRow, int lastRow, int firstColumn, int lastColumn, boolean firstRowRelative, boolean lastRowRelative, boolean firstColRelative, boolean lastColRelative)
protected final java.lang.RuntimeException notImplemented()
protected final void readCoordinates(LittleEndianInput in)
protected final void writeCoordinates(LittleEndianOutput out)
public final int getFirstRow()
getFirstRow
in interface AreaI
public final void setFirstRow(int rowIx)
rowIx
- number (0-based)public final int getLastRow()
getLastRow
in interface AreaI
public final void setLastRow(int rowIx)
rowIx
- last row number in the areapublic final int getFirstColumn()
getFirstColumn
in interface AreaI
public final short getFirstColumnRaw()
public final boolean isFirstRowRelative()
isFirstRowRelative
in interface AreaI
public final void setFirstRowRelative(boolean rel)
rel
- is relative or not.public final boolean isFirstColRelative()
isFirstColRelative
in interface AreaI
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
public final short getLastColumnRaw()
public final boolean isLastRowRelative()
isLastRowRelative
in interface AreaI
public final void setLastRowRelative(boolean rel)
rel
- true
if the last row relative, else
false
public final boolean isLastColRelative()
isLastColRelative
in interface AreaI
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
public byte getDefaultOperandClass()
getDefaultOperandClass
in class Ptg
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.