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 bytesid-
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(java.lang.String arearef, short externIdx)Area3DPtg(RecordInputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()booleanequals(java.lang.Object o)bytegetDefaultOperandClass()shortgetExternSheetIndex()shortgetFirstColumn()shortgetFirstColumnRaw()shortgetFirstRow()shortgetLastColumn()shortgetLastColumnRaw()shortgetLastRow()intgetSize()inthashCode()booleanisFirstColRelative()booleanisFirstRowRelative()booleanisLastColRelative()booleanisLastRowRelative()voidsetArea(java.lang.String ref)voidsetExternSheetIndex(short index)voidsetFirstColRelative(boolean rel)set whether the first column is relativevoidsetFirstColumn(short column)voidsetFirstColumnRaw(short column)voidsetFirstRow(short row)voidsetFirstRowRelative(boolean rel)sets the first row to relative or notvoidsetLastColRelative(boolean rel)set whether the last column should be relative or notvoidsetLastColumn(short column)voidsetLastColumnRaw(short column)voidsetLastRow(short row)voidsetLastRowRelative(boolean rel)set whether the last row is relative or notjava.lang.StringtoFormulaString(Workbook book)return a string representation of this token alonejava.lang.StringtoString()Overridden toString method to ensure object hash is not printed.voidwriteBytes(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(java.lang.String arearef, short externIdx)
-
Area3DPtg
public Area3DPtg(RecordInputStream in)
-
-
Method Detail
-
toString
public java.lang.String toString()
Description copied from class:PtgOverridden 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:Ptgwrite this Ptg to a byte array- Specified by:
writeBytesin 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(java.lang.String ref)
-
toFormulaString
public java.lang.String toFormulaString(Workbook book)
Description copied from class:Ptgreturn a string representation of this token alone- Specified by:
toFormulaStringin classPtg
-
getDefaultOperandClass
public byte getDefaultOperandClass()
- Specified by:
getDefaultOperandClassin classPtg
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-