|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.JRAbstractExporter
net.sf.jasperreports.engine.export.JRRtfExporter
public class JRRtfExporter
Exports a JasperReports document to RTF format. It has binary output type and exports the document to a free-form layout. It uses the RTF Specification 1.6 (compatible with MS Word 6.0, 2003 and XP).
| Nested Class Summary | |
|---|---|
protected class |
JRRtfExporter.ExporterContext
|
| Nested classes/interfaces inherited from class net.sf.jasperreports.engine.JRAbstractExporter |
|---|
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver |
| Field Summary | |
|---|---|
protected List<Color> |
colors
|
protected FileBufferedWriter |
colorWriter
|
protected File |
destFile
|
protected JRRtfExporterContext |
exporterContext
|
protected List<String> |
fonts
|
protected FileBufferedWriter |
fontWriter
|
protected static String |
JR_PAGE_ANCHOR_PREFIX
|
protected JRExportProgressMonitor |
progressMonitor
|
protected int |
reportIndex
|
static String |
RTF_EXPORTER_KEY
The exporter key, as used in GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String). |
protected Writer |
rtfWriter
|
protected FileBufferedWriter |
writer
|
| Fields inherited from class net.sf.jasperreports.engine.JRAbstractExporter |
|---|
dateFormatCache, endPageIndex, filter, fontMap, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, jasperReportsContext, numberFormatCache, parameters, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex |
| Constructor Summary | |
|---|---|
JRRtfExporter()
|
|
JRRtfExporter(JasperReportsContext jasperReportsContext)
|
|
| Method Summary | |
|---|---|
protected void |
endHyperlink(boolean startedHyperlink)
|
protected void |
exportElements(Collection<JRPrintElement> elements)
|
protected void |
exportEllipse(JRPrintEllipse ellipse)
Draw a ellipse object |
protected void |
exportFrame(JRPrintFrame frame)
|
protected void |
exportGenericElement(JRGenericPrintElement element)
|
protected boolean |
exportHyperlink(JRPrintHyperlink link)
|
void |
exportImage(JRPrintImage printImage)
Export a image object |
protected void |
exportLine(JRPrintLine line)
Draw a line object |
protected void |
exportPage(JRPrintPage page,
boolean lastPage)
Exports a report page |
protected void |
exportRectangle(JRPrintRectangle rectangle)
Draw a rectangle |
void |
exportReport()
Export report in .rtf format |
protected StringBuffer |
exportReportToBuffer()
Export report in .rtf format |
protected void |
exportReportToFile()
Export report to a file in the .rtf format |
protected void |
exportReportToStream()
Export report in .rtf format to a stream |
void |
exportText(JRPrintText text)
Draw a text box |
protected String |
getExporterKey()
|
protected void |
writeAnchor(String anchorName)
|
protected void |
writeShapeHyperlink(JRPrintHyperlink link)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RTF_EXPORTER_KEY
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String).
protected static final String JR_PAGE_ANCHOR_PREFIX
protected JRExportProgressMonitor progressMonitor
protected FileBufferedWriter colorWriter
protected FileBufferedWriter fontWriter
protected FileBufferedWriter writer
protected Writer rtfWriter
protected File destFile
protected int reportIndex
protected List<Color> colors
protected List<String> fonts
protected JRRtfExporterContext exporterContext
| Constructor Detail |
|---|
public JRRtfExporter()
JRRtfExporter(JasperReportsContext)public JRRtfExporter(JasperReportsContext jasperReportsContext)
| Method Detail |
|---|
public void exportReport()
throws JRException
exportReport in interface JRExporterexportReport in class JRAbstractExporterJRException
protected StringBuffer exportReportToBuffer()
throws JRException
JRException
protected void exportReportToStream()
throws JRException,
IOException
JRException
IOException
protected void exportReportToFile()
throws JRException
JRException
protected void exportPage(JRPrintPage page,
boolean lastPage)
throws JRException,
IOException
page - Page that will be exported
JRException
IOException
protected void exportLine(JRPrintLine line)
throws IOException
line - JasperReports line object - JRPrintLine
IOException
protected void exportRectangle(JRPrintRectangle rectangle)
throws IOException
rectangle - JasperReports rectangle object (JRPrintRectangle)
IOException
protected void exportEllipse(JRPrintEllipse ellipse)
throws IOException
ellipse - JasperReports ellipse object (JRPrintElipse)
IOException
public void exportText(JRPrintText text)
throws IOException,
JRException
text - JasperReports text object (JRPrintText)
JRException
IOException
public void exportImage(JRPrintImage printImage)
throws JRException,
IOException
printImage - JasperReports image object (JRPrintImage)
JRException
IOException
protected void exportFrame(JRPrintFrame frame)
throws JRException,
IOException
frame -
JRException
IOException
protected void exportElements(Collection<JRPrintElement> elements)
throws JRException,
IOException
JRException
IOExceptionprotected void exportGenericElement(JRGenericPrintElement element)
protected boolean exportHyperlink(JRPrintHyperlink link)
throws IOException
IOException
protected void writeShapeHyperlink(JRPrintHyperlink link)
throws IOException
IOException
protected void endHyperlink(boolean startedHyperlink)
throws IOException
IOException
protected void writeAnchor(String anchorName)
throws IOException
IOExceptionprotected String getExporterKey()
getExporterKey in class JRAbstractExporter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||