|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.write.biff.SheetWriter
Contains the functionality necessary for writing out a sheet. Originally this was incorporated in WritableSheetImpl, but was moved out into a dedicated class in order to reduce the over bloated nature of that class
Field Summary | |
private boolean |
chartOnly
Flag indicates that this sheet contains just a chart, and nothing else |
private Chart[] |
charts
The list of charts |
private java.util.TreeSet |
columnFormats
The column format overrides |
private FooterRecord |
footer
The page footer |
private HeaderRecord |
header
The page header |
private java.util.ArrayList |
hyperlinks
Array of hyperlinks |
private MergedCells |
mergedCells
The list of merged ranges |
private int |
numCols
The number of columns. |
private int |
numRows
A number of rows. |
private File |
outputFile
A handle to the output file which the binary data is written to |
private java.util.ArrayList |
rowBreaks
Array of row page breaks |
private RowRecord[] |
rows
The rows within this sheet |
private SheetSettings |
settings
The settings for the sheet |
private WritableSheetImpl |
sheet
A handle back to the writable sheet, in order for this class to invoke the get accessor methods |
private WorkbookSettings |
workbookSettings
The settings for the workbook |
private WorkspaceInformationRecord |
workspaceOptions
The workspace options |
Constructor Summary | |
SheetWriter(File of,
WritableSheetImpl wsi,
WorkbookSettings ws)
Creates a new SheetWriter instance. |
Method Summary | |
(package private) void |
checkMergedBorders()
Check all the merged cells for borders. |
(package private) Chart[] |
getCharts()
|
private Cell[] |
getColumn(int col)
Get the cells in the column. |
(package private) FooterRecord |
getFooter()
Gets the footer. |
(package private) HeaderRecord |
getHeader()
Gets the header. |
(package private) WorkspaceInformationRecord |
getWorkspaceOptions()
|
(package private) void |
setChartOnly()
Sets a flag to indicate that this sheet contains a chart only |
(package private) void |
setCharts(Chart[] ch)
|
(package private) void |
setDimensions(int rws,
int cls)
Sets the dimensions of this spreadsheet. |
(package private) void |
setFooter(FooterRecord fr)
|
(package private) void |
setHeader(HeaderRecord hr)
|
(package private) void |
setSettings(SheetSettings sr)
Sets the sheet settings for this particular sheet. |
(package private) void |
setWorkspaceOptions(WorkspaceInformationRecord wo)
|
(package private) void |
setWriteData(RowRecord[] rws,
java.util.ArrayList rb,
java.util.ArrayList hl,
MergedCells mc,
java.util.TreeSet cf)
Sets the data necessary for writing out the sheet. |
void |
write()
Writes out this sheet. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private File outputFile
private RowRecord[] rows
private int numRows
private int numCols
private HeaderRecord header
private FooterRecord footer
private SheetSettings settings
private WorkbookSettings workbookSettings
private java.util.ArrayList rowBreaks
private java.util.ArrayList hyperlinks
private MergedCells mergedCells
private WorkspaceInformationRecord workspaceOptions
private java.util.TreeSet columnFormats
private Chart[] charts
private boolean chartOnly
private WritableSheetImpl sheet
Constructor Detail |
public SheetWriter(File of, WritableSheetImpl wsi, WorkbookSettings ws)
SheetWriter
instance.of
- the output fileMethod Detail |
public void write() throws java.io.IOException
java.io.IOException
- void setHeader(HeaderRecord hr)
final HeaderRecord getHeader()
final FooterRecord getFooter()
void setFooter(FooterRecord fr)
void setWriteData(RowRecord[] rws, java.util.ArrayList rb, java.util.ArrayList hl, MergedCells mc, java.util.TreeSet cf)
rws
- the rows in the spreadsheetvoid setDimensions(int rws, int cls)
rws
- the number of rowscls
- the number of columnsvoid setSettings(SheetSettings sr)
sr
- the sheet settingsWorkspaceInformationRecord getWorkspaceOptions()
void setWorkspaceOptions(WorkspaceInformationRecord wo)
void setCharts(Chart[] ch)
Chart[] getCharts()
void checkMergedBorders()
private Cell[] getColumn(int col)
void setChartOnly()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |