public final class MergedCellsTable extends RecordAggregate
RecordAggregate.PositionTrackingVisitor, RecordAggregate.RecordVisitor
Constructor and Description |
---|
MergedCellsTable()
Creates an empty aggregate
|
Modifier and Type | Method and Description |
---|---|
void |
addArea(int rowFrom,
int colFrom,
int rowTo,
int colTo) |
void |
addRecords(MergeCellsRecord[] mcrs) |
CellRangeAddress |
get(int index) |
int |
getNumberOfMergedRegions() |
int |
getRecordSize()
gives the current serialized size of the record.
|
void |
read(RecordStream rs)
reads zero or more consecutive
MergeCellsRecord s |
void |
remove(int index) |
void |
visitContainedRecords(RecordAggregate.RecordVisitor rv)
Visit each of the atomic BIFF records contained in this
RecordAggregate in the order
that they should be written to file. |
serialize
public void read(RecordStream rs)
MergeCellsRecord
srs
- public int getRecordSize()
RecordBase
getRecordSize
in class RecordAggregate
public void visitContainedRecords(RecordAggregate.RecordVisitor rv)
RecordAggregate
RecordAggregate
in the order
that they should be written to file. Implementors may or may not return the actual
Record
s being used to manage POI's internal implementation. Callers should not
assume either way, and therefore only attempt to modify those Record
s after cloningvisitContainedRecords
in class RecordAggregate
public void addRecords(MergeCellsRecord[] mcrs)
public CellRangeAddress get(int index)
public void remove(int index)
public void addArea(int rowFrom, int colFrom, int rowTo, int colTo)
public int getNumberOfMergedRegions()
Copyright © 2020. All rights reserved.