|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.ss.util.CellRangeAddressList
public class CellRangeAddressList
Implementation of the cell range address lists,like is described in OpenOffice.org's Excel Documentation: excelfileformat.pdf sec 2.5.14 - 'Cell Range Address List' In BIFF8 there is a common way to store absolute cell range address lists in several records (not formulas). A cell range address list consists of a field with the number of ranges and the list of the range addresses. Each cell range address (called an ADDR structure) contains 4 16-bit-values.
| Field Summary | |
|---|---|
protected java.util.List<CellRangeAddress> |
_list
List of CellRangeAddresses. |
| Constructor Summary | |
|---|---|
CellRangeAddressList()
|
|
CellRangeAddressList(int firstRow,
int lastRow,
int firstCol,
int lastCol)
Convenience constructor for creating a CellRangeAddressList with a single CellRangeAddress. |
|
CellRangeAddressList(RecordInputStream in)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.List<CellRangeAddress> _list
| Constructor Detail |
|---|
public CellRangeAddressList()
public CellRangeAddressList(int firstRow,
int lastRow,
int firstCol,
int lastCol)
public CellRangeAddressList(RecordInputStream in)
in - the RecordInputstream to read the record from| Method Detail |
|---|
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||