Package loci.poi.hssf.record.formula
Class Area3DPtg
- java.lang.Object
-
- loci.poi.hssf.record.formula.Ptg
-
- loci.poi.hssf.record.formula.Area3DPtg
-
- Direct Known Subclasses:
DeletedArea3DPtg
public class Area3DPtg extends Ptg
Title: Area 3D Ptg - 3D referecnce (Sheet + Area)Description: Defined a area in Extern Sheet.
REFERENCE:
- Version:
- 1.0-pre
- Author:
- Libin Roman (Vista Portal LDT. Developer), avik, Jason Height (jheight at chariot dot net dot au)
-
-
Field Summary
Fields Modifier and Type Field Description static byte
sid
-
Fields inherited from class loci.poi.hssf.record.formula.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass
-
-
Constructor Summary
Constructors Constructor Description Area3DPtg()
Creates new AreaPtgArea3DPtg(String arearef, short externIdx)
Area3DPtg(RecordInputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
boolean
equals(Object o)
byte
getDefaultOperandClass()
short
getExternSheetIndex()
short
getFirstColumn()
short
getFirstColumnRaw()
short
getFirstRow()
short
getLastColumn()
short
getLastColumnRaw()
short
getLastRow()
int
getSize()
int
hashCode()
boolean
isFirstColRelative()
boolean
isFirstRowRelative()
boolean
isLastColRelative()
boolean
isLastRowRelative()
void
setArea(String ref)
void
setExternSheetIndex(short index)
void
setFirstColRelative(boolean rel)
set whether the first column is relativevoid
setFirstColumn(short column)
void
setFirstColumnRaw(short column)
void
setFirstRow(short row)
void
setFirstRowRelative(boolean rel)
sets the first row to relative or notvoid
setLastColRelative(boolean rel)
set whether the last column should be relative or notvoid
setLastColumn(short column)
void
setLastColumnRaw(short column)
void
setLastRow(short row)
void
setLastRowRelative(boolean rel)
set whether the last row is relative or notString
toFormulaString(Workbook book)
return a string representation of this token aloneString
toString()
Overridden toString method to ensure object hash is not printed.void
writeBytes(byte[] array, int offset)
write this Ptg to a byte array-
Methods inherited from class loci.poi.hssf.record.formula.Ptg
createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugString
-
-
-
-
Field Detail
-
sid
public static final byte sid
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Area3DPtg
public Area3DPtg()
Creates new AreaPtg
-
Area3DPtg
public Area3DPtg(String arearef, short externIdx)
-
Area3DPtg
public Area3DPtg(RecordInputStream in)
-
-
Method Detail
-
toString
public String toString()
Description copied from class:Ptg
Overridden toString method to ensure object hash is not printed. This helps get rid of gratuitous diffs when comparing two dumps Subclasses may output more relevant information by overriding this method
-
writeBytes
public void writeBytes(byte[] array, int offset)
Description copied from class:Ptg
write this Ptg to a byte array- Specified by:
writeBytes
in classPtg
-
getExternSheetIndex
public short getExternSheetIndex()
-
setExternSheetIndex
public void setExternSheetIndex(short index)
-
getFirstRow
public short getFirstRow()
-
setFirstRow
public void setFirstRow(short row)
-
getLastRow
public short getLastRow()
-
setLastRow
public void setLastRow(short row)
-
getFirstColumn
public short getFirstColumn()
-
getFirstColumnRaw
public short getFirstColumnRaw()
-
isFirstRowRelative
public boolean isFirstRowRelative()
-
isFirstColRelative
public boolean isFirstColRelative()
-
setFirstColumn
public void setFirstColumn(short column)
-
setFirstColumnRaw
public void setFirstColumnRaw(short column)
-
getLastColumn
public short getLastColumn()
-
getLastColumnRaw
public short getLastColumnRaw()
-
isLastRowRelative
public boolean isLastRowRelative()
-
isLastColRelative
public boolean isLastColRelative()
-
setLastColumn
public void setLastColumn(short column)
-
setLastColumnRaw
public void setLastColumnRaw(short column)
-
setFirstRowRelative
public void setFirstRowRelative(boolean rel)
sets the first row to relative or not- Parameters:
rel
- FIXME: Document this!
-
setFirstColRelative
public void setFirstColRelative(boolean rel)
set whether the first column is relative
-
setLastRowRelative
public void setLastRowRelative(boolean rel)
set whether the last row is relative or not- Parameters:
rel
- FIXME: Document this!
-
setLastColRelative
public void setLastColRelative(boolean rel)
set whether the last column should be relative or not
-
setArea
public void setArea(String ref)
-
toFormulaString
public String toFormulaString(Workbook book)
Description copied from class:Ptg
return a string representation of this token alone- Specified by:
toFormulaString
in classPtg
-
getDefaultOperandClass
public byte getDefaultOperandClass()
- Specified by:
getDefaultOperandClass
in classPtg
-
-