org.apache.poi.hssf.util
Class CellRangeAddress8Bit

java.lang.Object
  extended by org.apache.poi.hssf.util.CellRangeAddress8Bit

public final class CellRangeAddress8Bit
extends java.lang.Object

See OOO documentation: excelfileformat.pdf sec 2.5.14 - 'Cell Range Address'

Like CellRangeAddress except column fields are 8-bit.

Author:
Josh Micich

Field Summary
static int ENCODED_SIZE
           
 
Constructor Summary
CellRangeAddress8Bit(int firstRow, int lastRow, int firstCol, int lastCol)
           
CellRangeAddress8Bit(RecordInputStream in)
           
 
Method Summary
 CellRangeAddress8Bit copy()
           
static int getEncodedSize(int numberOfItems)
           
 int getFirstColumn()
           
 int getFirstRow()
           
 int getLastColumn()
           
 int getLastRow()
           
 boolean isFullColumnRange()
           
 boolean isFullRowRange()
           
 int serialize(int offset, byte[] data)
           
 void setFirstColumn(int firstCol)
           
 void setFirstRow(int firstRow)
           
 void setLastColumn(int lastCol)
           
 void setLastRow(int lastRow)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENCODED_SIZE

public static final int ENCODED_SIZE
See Also:
Constant Field Values
Constructor Detail

CellRangeAddress8Bit

public CellRangeAddress8Bit(int firstRow,
                            int lastRow,
                            int firstCol,
                            int lastCol)

CellRangeAddress8Bit

public CellRangeAddress8Bit(RecordInputStream in)
Method Detail

serialize

public int serialize(int offset,
                     byte[] data)

copy

public CellRangeAddress8Bit copy()

getEncodedSize

public static int getEncodedSize(int numberOfItems)

isFullColumnRange

public final boolean isFullColumnRange()

isFullRowRange

public final boolean isFullRowRange()

getFirstColumn

public final int getFirstColumn()
Returns:
column number for the upper left hand corner

getFirstRow

public final int getFirstRow()
Returns:
row number for the upper left hand corner

getLastColumn

public final int getLastColumn()
Returns:
column number for the lower right hand corner

getLastRow

public final int getLastRow()
Returns:
row number for the lower right hand corner

setFirstColumn

public final void setFirstColumn(int firstCol)
Parameters:
_firstCol - column number for the upper left hand corner

setFirstRow

public final void setFirstRow(int firstRow)
Parameters:
rowFrom - row number for the upper left hand corner

setLastColumn

public final void setLastColumn(int lastCol)
Parameters:
colTo - column number for the lower right hand corner

setLastRow

public final void setLastRow(int lastRow)
Parameters:
rowTo - row number for the lower right hand corner

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.