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
-
public final class MergedCellsTable extends RecordAggregate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.poi.hssf.record.aggregates.RecordAggregate
RecordAggregate.PositionTrackingVisitor, RecordAggregate.RecordVisitor
-
-
Constructor Summary
Constructors Constructor Description MergedCellsTable()Creates an empty aggregate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArea(int rowFrom, int colFrom, int rowTo, int colTo)voidaddRecords(MergeCellsRecord[] mcrs)CellRangeAddressget(int index)intgetNumberOfMergedRegions()intgetRecordSize()gives the current serialized size of the record.voidread(RecordStream rs)reads zero or more consecutiveMergeCellsRecordsvoidremove(int index)voidvisitContainedRecords(RecordAggregate.RecordVisitor rv)Visit each of the atomic BIFF records contained in this RecordAggregate in the order that they should be written to file.-
Methods inherited from class org.apache.poi.hssf.record.aggregates.RecordAggregate
serialize
-
-
-
-
Method Detail
-
read
public void read(RecordStream rs)
reads zero or more consecutiveMergeCellsRecords
-
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
public void visitContainedRecords(RecordAggregate.RecordVisitor rv)
Description copied from class:RecordAggregateVisit each of the atomic BIFF records contained in this RecordAggregate in 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- Parameters:
rv- The visitor to use for callbacks while walking this object
-
addRecords
public void addRecords(MergeCellsRecord[] mcrs)
-
get
public CellRangeAddress get(int index)
-
remove
public void remove(int index)
-
addArea
public void addArea(int rowFrom, int colFrom, int rowTo, int colTo)
-
getNumberOfMergedRegions
public int getNumberOfMergedRegions()
-
-