public class RTFGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
colorList |
protected Document |
document |
protected Vector |
fontList |
| Constructor and Description |
|---|
RTFGenerator(Document doc) |
| Modifier and Type | Method and Description |
|---|---|
protected Double |
convertPixelsToTwips(Double value) |
protected String |
convertString(String source) |
protected String |
createColorTable(Vector colorList) |
protected String |
createFontTable(Vector fontList) |
protected String |
getAfterFontDescription(AttributeSet attr) |
protected String |
getBeforeFontDescription(AttributeSet attr,
boolean isStyle) |
protected Vector |
getColorList(Element root,
Vector list) |
protected Vector |
getDefaultColorList() |
protected Element |
getDocumentTree() |
protected Vector |
getFontList(Element root,
Vector list) |
protected String |
getParagraphDescription(AttributeSet attr) |
protected boolean |
isInList(Vector list,
Object fontName) |
void |
write(String fileName) |
void |
write(Writer out,
int pos,
int len) |
protected void |
writeCell(Element cell,
Writer out,
int x,
int level) |
protected void |
writeCellContent(Element cell,
Writer out,
int level) |
protected void |
writeContent(Element root,
Writer out,
int level,
int pos,
int len) |
protected void |
writeIcon(Element leaf,
Writer out) |
protected void |
writeLeaf(Element leaf,
Writer out,
int pos,
int len) |
protected void |
writeParagraph(Element paragraph,
Writer out,
int level,
boolean lastInTable,
int pos,
int len) |
protected void |
writeRow(Element row,
Writer out,
int level) |
protected void |
writeTable(Element table,
Writer out,
int level) |
protected Document document
protected Vector fontList
protected Vector colorList
public RTFGenerator(Document doc)
public void write(String fileName) throws IOException
IOExceptionpublic void write(Writer out, int pos, int len) throws IOException
IOExceptionprotected void writeContent(Element root, Writer out, int level, int pos, int len) throws IOException
IOExceptionprotected void writeParagraph(Element paragraph, Writer out, int level, boolean lastInTable, int pos, int len) throws IOException
IOExceptionprotected void writeLeaf(Element leaf, Writer out, int pos, int len) throws IOException
IOExceptionprotected void writeIcon(Element leaf, Writer out) throws IOException
IOExceptionprotected void writeTable(Element table, Writer out, int level) throws IOException
IOExceptionprotected void writeRow(Element row, Writer out, int level) throws IOException
IOExceptionprotected void writeCellContent(Element cell, Writer out, int level) throws IOException
IOExceptionprotected void writeCell(Element cell, Writer out, int x, int level) throws IOException
IOExceptionprotected Element getDocumentTree()
protected Vector getDefaultColorList()
protected String getBeforeFontDescription(AttributeSet attr, boolean isStyle)
protected String getAfterFontDescription(AttributeSet attr)
protected String getParagraphDescription(AttributeSet attr)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.