|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.io.BaseFormatter
inetsoft.report.io.RTFFormatter
public class RTFFormatter
Formatter is responsible for converting report and report elements into an external format. RTFFormatter is deprecated. Please use RTFGenerator to create a RTF file instead.
| Field Summary | |
|---|---|
protected Vector |
centerV
Deprecated. |
protected int |
currAlign
Deprecated. |
protected Vector |
leftV
Deprecated. |
protected OutputStream |
output
Deprecated. |
protected Vector |
rightV
Deprecated. |
protected ReportSheet |
sheet
Deprecated. |
protected PrintWriter |
writer
Deprecated. |
| Fields inherited from class inetsoft.report.io.BaseFormatter |
|---|
docInfo, report |
| Constructor Summary | |
|---|---|
RTFFormatter(OutputStream output)
Deprecated. Create a report formatter. |
|
| Method Summary | |
|---|---|
protected void |
addElement(ReportElement elem)
Deprecated. Add element to the list. |
void |
end()
Deprecated. Write the end of report. |
protected void |
endCell()
Deprecated. End a cell. |
protected void |
endGrid()
Deprecated. End the layout grid. |
void |
endHeader()
Deprecated. End a header section. |
protected void |
endRow()
Deprecated. End a row. |
protected void |
flushElements()
Deprecated. Write out the buffered paragraphs. |
protected String |
getFontName(Font font)
Deprecated. Get the real font name. |
protected String |
getLineProperty(int line)
Deprecated. Get line style property string option. |
protected void |
init(ReportSheet report)
Deprecated. Initialize the report. |
void |
prolog(ReportSheet sheetin)
Deprecated. Write the prolog of report. |
void |
setPageSize(double width,
double height)
Deprecated. replaced by ReportSheet.setPageSize(). |
void |
setPageSize(Size size)
Deprecated. replaced by ReportSheet.setPageSize(). |
protected void |
startCell(TabularSheet sheet,
int r,
int c,
Object bg,
Insets borders,
Color bcolor,
Rectangle span,
String width,
boolean repeat)
Deprecated. Start a new cell. |
protected void |
startGrid(int rows,
int cols)
Deprecated. Start a layout grid (for tabular layout). |
void |
startHeader(int type)
Deprecated. Start a header section. |
void |
startHeader(String eid,
boolean header)
Deprecated. Start a header selection for element associated header/footer. |
protected void |
startRow(TabularSheet sheet,
int row)
Deprecated. Start a new row. |
void |
write(AreaBreakElement elem)
Deprecated. Write the areabreak element. |
void |
write(BeanElement elem)
Deprecated. Write the bean element. |
void |
write(ChartElement elem)
Deprecated. Write the chart element. |
void |
write(CompositeElement elem)
Deprecated. Write the composite element. |
void |
write(CondPageBreakElement elem)
Deprecated. Write the conditional page break element. |
void |
write(FormElement elem)
Deprecated. Write the form element. |
void |
write(HeadingElement elem)
Deprecated. Write the heading text element. |
void |
write(NewlineElement elem)
Deprecated. Write the newline element. |
protected void |
write(OutputStream out,
int val,
int bytes)
Deprecated. Write value in reverse byte order. |
void |
write(PageBreakElement elem)
Deprecated. Write the pagebreak element. |
void |
write(PageLayoutElement elem)
Deprecated. Write the page layout element. |
void |
write(PainterElement elem)
Deprecated. Defer the writing of PainterElement to the left|center|right vector |
void |
write(ReportSheet sheet)
Deprecated. Export a report. |
void |
write(SectionElement elem0)
Deprecated. Write the section element. |
void |
write(SeparatorElement elem)
Deprecated. Write the separator element. |
void |
write(SpaceElement elem)
Deprecated. Write the space element. |
void |
write(TabElement elem)
Deprecated. Write the tab element. |
void |
write(TableElement elem0)
Deprecated. Write the table element. |
void |
write(TextBoxElement elem0)
Deprecated. Write the textbox element. |
void |
write(TextElement elem0)
Deprecated. Write the text element. |
void |
write(TOCElement elem)
Deprecated. Write the TOC element. |
void |
write(inetsoft.report.style.XTableStyle style)
Deprecated. Write embedded table style. |
protected void |
writeAlignment(int align)
Deprecated. Write horizontal alignment option. |
protected void |
writeCell(Vector para,
int align)
Deprecated. |
protected void |
writeColorTable(Color c)
Deprecated. Write color table entry. |
protected String |
writeFont(Font font,
boolean underline)
Deprecated. |
void |
writePainter(PainterElement elem0)
Deprecated. Write the painter element. |
protected void |
writePainter(String hlink,
Painter painter,
Size size,
Color fg,
Color bg)
Deprecated. Write a painter paragraph. |
protected void |
writePainter(String hlink,
Painter painter,
Size size,
Color fg,
Color bg,
String target)
Deprecated. Write a painter paragraph. |
protected void |
writeParagraph(String hlink,
Object obj,
Font font,
Color fg,
Color bg)
Deprecated. Write text paragraph. |
protected void |
writeSectionBand(SectionBand band)
Deprecated. Print one band. |
protected void |
writeShapes(PageLayout.Shape[] shapes)
Deprecated. Write the pagelayout shapes specifications. |
protected void |
writeText(TextElement elem0)
Deprecated. Write the text element. |
protected void |
writeWarnings(ReportElement elem,
ReportSheet sheet)
Deprecated. Write warning messages. |
protected void |
writeWrapSpace(Insets space)
Deprecated. Write the painter external space. |
| Methods inherited from class inetsoft.report.io.BaseFormatter |
|---|
addProgressListener, escape, fireProgressEvent, localize, removeProgressListener, setDocumentInfo, write, write, write, writeBeanPropertyDefinition, writeContents, writeContents, writeContents, writeElementContents, writeSection, writeWarnings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PrintWriter writer
protected OutputStream output
protected ReportSheet sheet
protected Vector leftV
protected Vector centerV
protected Vector rightV
protected int currAlign
| Constructor Detail |
|---|
public RTFFormatter(OutputStream output)
| Method Detail |
|---|
public void setPageSize(double width,
double height)
width - page width.height - page height.public void setPageSize(Size size)
size - Size object in inches.
protected void startGrid(int rows,
int cols)
startGrid in class BaseFormatterrows - number of rows.cols - number of columns.protected void endGrid()
endGrid in class BaseFormatter
protected void startRow(TabularSheet sheet,
int row)
startRow in class BaseFormattersheet - tabular report object.row - row index in the grid.protected void endRow()
endRow in class BaseFormatter
protected void startCell(TabularSheet sheet,
int r,
int c,
Object bg,
Insets borders,
Color bcolor,
Rectangle span,
String width,
boolean repeat)
startCell in class BaseFormatterr - row index.c - column index.bg - cell background color or image.borders - border setting.bcolor - border color.span - cell span.width - column width. See TabularSheet for width specification
format.repeat - true to repeat the cell contents on every page.protected void endCell()
endCell in class BaseFormatterprotected void writeShapes(PageLayout.Shape[] shapes)
writeShapes in class BaseFormatterprotected void init(ReportSheet report)
init in class BaseFormatterpublic void prolog(ReportSheet sheetin)
public void startHeader(int type)
type - header/footer type. Defined in ReportSheet.
public void write(ReportSheet sheet)
throws IOException
write in interface Formatterwrite in class BaseFormattersheet - report to export.
IOException
public void startHeader(String eid,
boolean header)
eid - element ID.header - true if header, false if footer.public void endHeader()
public void write(inetsoft.report.style.XTableStyle style)
public void write(HeadingElement elem)
public void write(TextElement elem0)
protected void writeText(TextElement elem0)
public void write(SectionElement elem0)
throws IOException
IOException
protected void writeSectionBand(SectionBand band)
throws IOException
writeSectionBand in class BaseFormatterIOException
protected void writeWarnings(ReportElement elem,
ReportSheet sheet)
writeWarnings in class BaseFormatterpublic void write(TableElement elem0)
public void write(FormElement elem)
public void write(PainterElement elem)
elem - public void writePainter(PainterElement elem0)
public void write(ChartElement elem)
public void write(TOCElement elem)
throws IOException
IOException
public void write(CompositeElement elem)
throws IOException
IOException
public void write(BeanElement elem)
throws IOException
IOExceptionpublic void write(TextBoxElement elem0)
public void write(TabElement elem)
public void write(NewlineElement elem)
public void write(AreaBreakElement elem)
public void write(PageBreakElement elem)
public void write(PageLayoutElement elem)
public void write(CondPageBreakElement elem)
public void write(SpaceElement elem)
public void write(SeparatorElement elem)
public void end()
end in interface Formatterend in class BaseFormatterprotected String getFontName(Font font)
protected String getLineProperty(int line)
protected void writeColorTable(Color c)
protected void writeParagraph(String hlink,
Object obj,
Font font,
Color fg,
Color bg)
hlink - the Hyperlink string, which can be a url or
another report
protected String writeFont(Font font,
boolean underline)
protected void writeAlignment(int align)
protected void writeWrapSpace(Insets space)
protected void writePainter(String hlink,
Painter painter,
Size size,
Color fg,
Color bg)
hlink - the Hyperlink string, which can be a url or
another report
protected void writePainter(String hlink,
Painter painter,
Size size,
Color fg,
Color bg,
String target)
hlink - the Hyperlink string, which can be a url or
another report
protected void write(OutputStream out,
int val,
int bytes)
protected void flushElements()
protected void writeCell(Vector para,
int align)
protected void addElement(ReportElement elem)
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||