|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.workbook.io.GnumericWriter
A class that knows how to write a JWorkbook object to the Gnumeric XML file format.
Field Summary | |
protected JWorkbook |
workbook
The workbook. |
Constructor Summary | |
GnumericWriter(JWorkbook workbook)
Creates a new writer for the specified workbook. |
Method Summary | |
void |
saveWorkbook(java.lang.String filename)
Saves the workbook in Gnumeric XML format. |
void |
writeBorderStyle(Border style,
java.io.PrintStream out,
java.lang.String indent)
Writes a style border element to the stream. |
void |
writeCell(Cell cell,
java.io.PrintStream out,
java.lang.String indent)
Write the cell element. |
void |
writeCell2(Cell cell,
java.io.PrintStream out,
java.lang.String indent)
Write the cell element. |
protected void |
writeCellContent(Cell cell,
java.io.PrintStream out,
java.lang.String indent)
Write the cell contents. |
void |
writeCells(Cells cells,
java.io.PrintStream out,
java.lang.String indent)
Writes the cells to the specified stream in the format required by the Gnumeric XML file. |
void |
writeColInfo(ColumnAttributes attributes,
java.io.PrintStream out,
java.lang.String indent)
Writes the columns element to the specified stream in the Gnumeric format. |
void |
writeColumns(ColumnAttributesManager columnAttributes,
java.io.PrintStream out,
java.lang.String indent)
Writes the columns element to the specified stream. |
void |
writeComment(Comment comment,
java.io.PrintStream out,
java.lang.String indent)
Writes a comment element in the Gnumeric file format. |
void |
writeDateCell(Cell cell,
java.io.PrintStream out,
java.lang.String indent)
Writes a date cell. |
void |
writeFontStyle(FontStyle font,
java.io.PrintStream out,
java.lang.String indent)
Writes a style font element to the stream. |
void |
writeMargins(Margins margins,
java.io.PrintStream out,
java.lang.String indent)
Writes the margins element to the stream. |
void |
writePrintInformation(PrintInformation info,
java.io.PrintStream out,
java.lang.String indent)
Writes a print information element to the stream. |
void |
writeRow(Row row,
java.io.PrintStream out,
java.lang.String indent)
Writes a row element to the stream. |
void |
writeRowInfo(RowAttributes attributes,
java.io.PrintStream out,
java.lang.String indent)
Writes the rows element to the specified stream in the Gnumeric format. |
void |
writeRows(RowAttributesManager rowAttributes,
java.io.PrintStream out,
java.lang.String indent)
Writes the rows element to the specified stream. |
void |
writeSelection(Selection selection,
java.io.PrintStream out,
java.lang.String indent)
Writes a selection element to the stream. |
void |
writeSelections(Selections selections,
java.io.PrintStream out,
java.lang.String indent)
Writes a selections element to the stream. |
void |
writeSolver(Solver solver,
java.io.PrintStream out,
java.lang.String indent)
Writes a solver element to the stream. |
void |
writeStyle(Style style,
java.io.PrintStream out,
java.lang.String indent)
Writes a style element to the stream. |
void |
writeStyleRegion(StyleRegion region,
java.io.PrintStream out,
java.lang.String indent)
Writes a style region element to the stream. |
void |
writeStyles(Styles styles,
java.io.PrintStream out,
java.lang.String indent)
Writes a styles element to the stream. |
void |
writeWorksheet(Worksheet worksheet,
java.io.PrintStream out,
java.lang.String indent)
Writes a worksheet element in the Gnumeric format to a stream. |
void |
writeWorksheetNames(NamesManager names,
java.io.PrintStream out,
java.lang.String indent)
Writes a names element in the Gnumeric format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JWorkbook workbook
Constructor Detail |
public GnumericWriter(JWorkbook workbook)
workbook
- the workbook.Method Detail |
public void saveWorkbook(java.lang.String filename) throws java.io.IOException
filename
- the name of the file.
java.io.IOException
- if there is an I/O problem.public void writeWorksheet(Worksheet worksheet, java.io.PrintStream out, java.lang.String indent)
worksheet
- the worksheet.out
- the output stream.indent
- the indentation.public void writePrintInformation(PrintInformation info, java.io.PrintStream out, java.lang.String indent)
info
- print information.out
- the output stream.indent
- the indentation.public void writeStyles(Styles styles, java.io.PrintStream out, java.lang.String indent)
styles
- the styles.out
- the output stream.indent
- the indentation.public void writeColumns(ColumnAttributesManager columnAttributes, java.io.PrintStream out, java.lang.String indent)
columnAttributes
- the column attributes.out
- the output stream.indent
- the indentation.public void writeRows(RowAttributesManager rowAttributes, java.io.PrintStream out, java.lang.String indent)
rowAttributes
- the row attributes.out
- the output stream.indent
- the indentation.public void writeSelections(Selections selections, java.io.PrintStream out, java.lang.String indent)
selections
- the selections.out
- the output stream.indent
- the indentation.public void writeCells(Cells cells, java.io.PrintStream out, java.lang.String indent)
cells
- the cells.out
- the output stream.indent
- the indentation.public void writeSolver(Solver solver, java.io.PrintStream out, java.lang.String indent)
solver
- the solver.out
- the output stream.indent
- the indentation.public void writeWorksheetNames(NamesManager names, java.io.PrintStream out, java.lang.String indent)
names
- the names manager.out
- the output stream.indent
- the indentation.public void writeMargins(Margins margins, java.io.PrintStream out, java.lang.String indent)
margins
- the margins.out
- the output stream.indent
- the indentation.public void writeBorderStyle(Border style, java.io.PrintStream out, java.lang.String indent)
style
- the style.out
- the output stream.indent
- the indentation.public void writeDateCell(Cell cell, java.io.PrintStream out, java.lang.String indent)
cell
- the cell.out
- the output stream.indent
- the indentation.public void writeCell2(Cell cell, java.io.PrintStream out, java.lang.String indent)
cell
- the cell.out
- the output stream.indent
- the indentation.public void writeStyle(Style style, java.io.PrintStream out, java.lang.String indent)
style
- the style.out
- the stream.indent
- the indentation.public void writeCell(Cell cell, java.io.PrintStream out, java.lang.String indent)
cell
- the cell.out
- the output stream.indent
- the indentation.protected void writeCellContent(Cell cell, java.io.PrintStream out, java.lang.String indent)
cell
- the cell.out
- the output stream.indent
- the indentation.public void writeStyleRegion(StyleRegion region, java.io.PrintStream out, java.lang.String indent)
region
- the style region.out
- the output stream.indent
- the indentation.public void writeRow(Row row, java.io.PrintStream out, java.lang.String indent)
row
- the row.out
- the output stream.indent
- the indentation.public void writeFontStyle(FontStyle font, java.io.PrintStream out, java.lang.String indent)
font
- the font style.out
- the stream for output.indent
- the indentation.public void writeColInfo(ColumnAttributes attributes, java.io.PrintStream out, java.lang.String indent)
attributes
- the column attributes.out
- the output stream.indent
- the indentation.public void writeRowInfo(RowAttributes attributes, java.io.PrintStream out, java.lang.String indent)
attributes
- the row attributes.out
- the output stream.indent
- the indentation.public void writeComment(Comment comment, java.io.PrintStream out, java.lang.String indent)
comment
- the comment.out
- the output stream.indent
- the indentation.public void writeSelection(Selection selection, java.io.PrintStream out, java.lang.String indent)
selection
- the selection.out
- the output stream.indent
- the indentation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |