Class RefPtgBase

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
Ref3DPtg, Ref3DPxg, 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 Details

    • RefPtgBase

      protected RefPtgBase()
    • RefPtgBase

      protected RefPtgBase(CellReference c)
  • Method Details

    • readCoordinates

      protected final void readCoordinates(LittleEndianInput in)
    • writeCoordinates

      protected final void writeCoordinates(LittleEndianOutput out)
    • setRow

      public final void setRow(int rowIndex)
    • getRow

      public final int getRow()
      Returns:
      the row number as an int
    • 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 String formatReferenceAsString()
    • getDefaultOperandClass

      public final byte getDefaultOperandClass()
      Specified by:
      getDefaultOperandClass in class Ptg