Class MergedCellsTable
java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.aggregates.RecordAggregate
org.apache.poi.hssf.record.aggregates.MergedCellsTable
- Author:
- Josh Micich
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.poi.hssf.record.aggregates.RecordAggregate
RecordAggregate.PositionTrackingVisitor, RecordAggregate.RecordVisitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArea
(int rowFrom, int colFrom, int rowTo, int colTo) void
addRecords
(MergeCellsRecord[] mcrs) get
(int index) int
int
gives the current serialized size of the record.void
read
(RecordStream rs) reads zero or more consecutiveMergeCellsRecord
svoid
remove
(int index) void
Visit each of the atomic BIFF records contained in thisRecordAggregate
in the order that they should be written to file.Methods inherited from class org.apache.poi.hssf.record.aggregates.RecordAggregate
serialize
-
Constructor Details
-
MergedCellsTable
public MergedCellsTable()Creates an empty aggregate
-
-
Method Details
-
read
reads zero or more consecutiveMergeCellsRecord
s- Parameters:
rs
-
-
getRecordSize
public int getRecordSize()Description copied from class:RecordBase
gives the current serialized size of the record. Should include the sid and reclength (4 bytes).- Overrides:
getRecordSize
in classRecordAggregate
- Returns:
- the record size
-
visitContainedRecords
Description copied from class:RecordAggregate
Visit each of the atomic BIFF records contained in thisRecordAggregate
in the order that they should be written to file. Implementors may or may not return the actualRecord
s being used to manage POI's internal implementation. Callers should not assume either way, and therefore only attempt to modify thoseRecord
s after cloning- Specified by:
visitContainedRecords
in classRecordAggregate
-
addRecords
-
get
-
remove
public void remove(int index) -
addArea
public void addArea(int rowFrom, int colFrom, int rowTo, int colTo) -
getNumberOfMergedRegions
public int getNumberOfMergedRegions()
-