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 TypeMethodDescriptionvoidaddArea(int rowFrom, int colFrom, int rowTo, int colTo) voidaddRecords(MergeCellsRecord[] mcrs) get(int index) intintgives the current serialized size of the record.voidread(RecordStream rs) reads zero or more consecutiveMergeCellsRecordsvoidremove(int index) voidVisit each of the atomic BIFF records contained in thisRecordAggregatein 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 consecutiveMergeCellsRecords- Parameters:
rs-
-
getRecordSize
public int getRecordSize()Description copied from class:RecordBasegives the current serialized size of the record. Should include the sid and reclength (4 bytes).- Overrides:
getRecordSizein classRecordAggregate- Returns:
- the record size
-
visitContainedRecords
Description copied from class:RecordAggregateVisit each of the atomic BIFF records contained in thisRecordAggregatein the order that they should be written to file. Implementors may or may not return the actualRecords being used to manage POI's internal implementation. Callers should not assume either way, and therefore only attempt to modify thoseRecords after cloning- Specified by:
visitContainedRecordsin 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()
-