public class CellRangeAddressList
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
_list
List of CellRangeAddresses.
|
Constructor and Description |
---|
CellRangeAddressList() |
CellRangeAddressList(int firstRow,
int lastRow,
int firstCol,
int lastCol)
Convenience constructor for creating a CellRangeAddressList with a single
CellRangeAddress.
|
CellRangeAddressList(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
addCellRangeAddress(CellRangeAddress cra) |
void |
addCellRangeAddress(int firstRow,
int firstCol,
int lastRow,
int lastCol)
Add a cell range structure.
|
CellRangeAddressList |
copy() |
int |
countRanges()
Get the number of following ADDR structures.
|
CellRangeAddress |
getCellRangeAddress(int index) |
CellRangeAddress[] |
getCellRangeAddresses() |
static int |
getEncodedSize(int numberOfRanges) |
int |
getSize() |
CellRangeAddress |
remove(int rangeIndex) |
int |
serialize(int offset,
byte[] data) |
void |
serialize(LittleEndianOutput out) |
protected final java.util.List _list
public CellRangeAddressList()
public CellRangeAddressList(int firstRow, int lastRow, int firstCol, int lastCol)
public CellRangeAddressList(RecordInputStream in)
in
- the RecordInputstream to read the record frompublic int countRanges()
public void addCellRangeAddress(int firstRow, int firstCol, int lastRow, int lastCol)
firstRow
- - the upper left hand corner's rowfirstCol
- - the upper left hand corner's collastRow
- - the lower right hand corner's rowlastCol
- - the lower right hand corner's colpublic void addCellRangeAddress(CellRangeAddress cra)
public CellRangeAddress remove(int rangeIndex)
public CellRangeAddress getCellRangeAddress(int index)
public int getSize()
public static int getEncodedSize(int numberOfRanges)
public int serialize(int offset, byte[] data)
public void serialize(LittleEndianOutput out)
public CellRangeAddressList copy()
public CellRangeAddress[] getCellRangeAddresses()
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.