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
(读取零个或多个连续的 MergeCellsRecords)
|
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.
(按照写入文件的顺序访问此 RecordAggregate 中包含的每个原子 BIFF 记录。)
|
serialize
public void read(RecordStream rs)
MergeCellsRecord
s
(读取零个或多个连续的 MergeCellsRecords)
rs
-
(rs -)
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 cloning
(按照写入文件的顺序访问此 RecordAggregate 中包含的每个原子 BIFF 记录。实施者可能会或可能不会返回用于管理 POI 内部实施的实际记录。调用者不应采取任何一种方式,因此仅在克隆后尝试修改这些记录)
visitContainedRecords
in class
RecordAggregate
(类 RecordAggregate 中的 visitContainedRecords)
rv
- The visitor to use for callbacks while walking this object
(rv - 访问此对象时用于回调的访问者)
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 2021 The Apache Software Foundation or its licensors, as applicable.