|
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.AbstractGenerator
inetsoft.report.io.RTFGenerator
public class RTFGenerator
RTFGenerator supports exporting a report to a RTF file. It creates a RTF file closely match the look and feel of the orignal report.
| Field Summary | |
|---|---|
protected ReportSheet |
sheet
|
protected PrintWriter |
writer
|
| Fields inherited from class inetsoft.report.io.AbstractGenerator |
|---|
docInfo |
| Constructor Summary | |
|---|---|
RTFGenerator(OutputStream output)
Create a RTFGenerator. |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel the generation if one if on going. |
void |
generate(ReportSheet sheet)
Export a report. |
void |
generate(ReportSheet sheet,
Enumeration pages)
Write a collection of pages to text. |
Dimension |
getPageSize()
Deprecated. replaced by ReportSheet.getPageSize(). |
void |
setOutput(OutputStream output)
Set the output stream of this generator. |
void |
setPageSize(double w,
double h)
Deprecated. replaced by ReportSheet.setPageSize(). |
void |
setPageSize(Size size)
Deprecated. replaced by ReportSheet.setPageSize(). |
void |
setResolution(int res)
Deprecated. page size setting replaced by ReportSheet.setPageSize(). |
void |
write(ReportSheet sheet)
Deprecated. use generate() method. |
void |
write(ReportSheet sheet,
Enumeration pages)
Deprecated. use generate() method. |
protected String |
writeFont(Font font,
boolean underline)
|
| Methods inherited from class inetsoft.report.io.AbstractGenerator |
|---|
addProgressListener, fireProgressEvent, getCachePages, getOutput, getReportCache, getReportId, removeProgressListener, setDocumentInfo, setReportCache, setReportId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PrintWriter writer
protected ReportSheet sheet
| Constructor Detail |
|---|
public RTFGenerator(OutputStream output)
| Method Detail |
|---|
public void setOutput(OutputStream output)
setOutput in interface GeneratorsetOutput in class AbstractGenerator
public void generate(ReportSheet sheet)
throws IOException
sheet - report to export.
IOException
public void generate(ReportSheet sheet,
Enumeration pages)
throws IOException
IOException
public void setPageSize(double w,
double h)
w - page width in inches.h - page height in inches.public void setPageSize(Size size)
size - Size object in inches.public Dimension getPageSize()
public void setResolution(int res)
res - resolution.
public void write(ReportSheet sheet)
throws IOException
sheet - report to export.
IOException
public void write(ReportSheet sheet,
Enumeration pages)
throws IOException
sheet - report to export.pages - StylePage objects that are already generated from report.
IOExceptionpublic void cancel()
protected String writeFont(Font font,
boolean underline)
|
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 | ||||||||