org.apache.poi.hssf.record.formula
Class RefPtgBase
java.lang.Object
org.apache.poi.hssf.record.formula.Ptg
org.apache.poi.hssf.record.formula.OperandPtg
org.apache.poi.hssf.record.formula.RefPtgBase
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- Ref3DPtg, RefNPtg, RefPtg
public abstract class RefPtgBase
- extends OperandPtg
ReferencePtgBase - handles references (such as A1, A2, IA4)
- Author:
- Andrew C. Oliver (acoliver@apache.org), Jason Height (jheight at chariot dot net dot au)
Constructor Summary |
protected |
RefPtgBase()
|
protected |
RefPtgBase(int row,
int column,
boolean isRowRelative,
boolean isColumnRelative)
|
protected |
RefPtgBase(java.lang.String cellref)
Takes in a String representation of a cell reference and fills out the
numeric fields. |
Methods inherited from class org.apache.poi.hssf.record.formula.Ptg |
clone, copy, createPtg, getBytes, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, getSize, readTokens, serializePtgs, setClass, toDebugString, toFormulaString, toString, writeBytes |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RefPtgBase
protected RefPtgBase()
RefPtgBase
protected RefPtgBase(java.lang.String cellref)
- Takes in a String representation of a cell reference and fills out the
numeric fields.
RefPtgBase
protected RefPtgBase(int row,
int column,
boolean isRowRelative,
boolean isColumnRelative)
readCoordinates
protected final void readCoordinates(RecordInputStream in)
writeCoordinates
protected final void writeCoordinates(byte[] array,
int offset)
setRow
public final void setRow(int row)
getRow
public final int getRow()
- Returns:
- the row number as an int, between 0 and 65535
isRowRelative
public final boolean isRowRelative()
setRowRelative
public final void setRowRelative(boolean rel)
isColRelative
public final boolean isColRelative()
setColRelative
public final void setColRelative(boolean rel)
setColumn
public final void setColumn(int col)
getColumn
public final int getColumn()
formatReferenceAsString
protected final java.lang.String formatReferenceAsString()
getDefaultOperandClass
public final byte getDefaultOperandClass()
- Specified by:
getDefaultOperandClass
in class Ptg
Copyright 2008 The Apache Software Foundation or
its licensors, as applicable.