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
spublic int getRecordSize()
RecordBase
getRecordSize
in class RecordAggregate
public void visitContainedRecords(RecordAggregate.RecordVisitor rv)
RecordAggregate
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
rv
- The visitor to use for callbacks while walking this objectpublic 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 2022 The Apache Software Foundation or its licensors, as applicable.