|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.write.biff.MergedCells
Contains all the merged cells, and the necessary logic for checking for intersections and for handling very large amounts of merging
Field Summary | |
private static int |
maxRangesPerSheet
The maximum number of ranges per sheet |
private java.util.ArrayList |
ranges
The list of merged cells |
private WritableSheet |
sheet
The sheet containing the cells |
Constructor Summary | |
MergedCells(WritableSheet ws)
Constructor |
Method Summary | |
(package private) void |
add(Range r)
Adds the range to the list of merged cells. |
(package private) void |
checkIntersections()
Called prior to writing out in order to check for intersections |
private void |
checkRanges()
Checks the cell ranges for intersections, or if the merged cells contains more than one item of data |
(package private) Range[] |
getMergedCells()
Gets the cells which have been merged on this sheet |
(package private) void |
insertColumn(int col)
Used to adjust the merged cells following a column insertion |
(package private) void |
insertRow(int row)
Used to adjust the merged cells following a row insertion |
(package private) void |
removeColumn(int col)
Used to adjust the merged cells following a column removal |
(package private) void |
removeRow(int row)
Used to adjust the merged cells following a row removal |
(package private) void |
unmergeCells(Range r)
Unmerges the specified cells. |
(package private) void |
write(File outputFile)
|
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.ArrayList ranges
private WritableSheet sheet
private static final int maxRangesPerSheet
Constructor Detail |
public MergedCells(WritableSheet ws)
Method Detail |
void add(Range r)
range
- the range to addvoid insertRow(int row)
void insertColumn(int col)
void removeColumn(int col)
void removeRow(int row)
Range[] getMergedCells()
void unmergeCells(Range r)
r
- the range of cells to unmergevoid checkIntersections()
private void checkRanges()
void write(File outputFile) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |