public class JRRtfExporter extends JRAbstractExporter
Modifier and Type | Class and Description |
---|---|
protected class |
JRRtfExporter.ExporterContext |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.awt.Color> |
colors |
protected FileBufferedWriter |
colorWriter |
protected java.io.File |
destFile |
protected JRRtfExporterContext |
exporterContext |
protected java.util.List<java.lang.String> |
fonts |
protected FileBufferedWriter |
fontWriter |
protected static java.lang.String |
JR_PAGE_ANCHOR_PREFIX |
protected JRExportProgressMonitor |
progressMonitor |
protected int |
reportIndex |
static java.lang.String |
RTF_EXPORTER_KEY
The exporter key, as used in
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String) . |
protected java.io.Writer |
rtfWriter |
protected FileBufferedWriter |
writer |
dateFormatCache, endPageIndex, filter, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, numberFormatCache, parameters, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex
Constructor and Description |
---|
JRRtfExporter() |
Modifier and Type | Method and Description |
---|---|
protected void |
exportElements(java.util.Collection<JRPrintElement> elements) |
protected void |
exportEllipse(JRPrintEllipse ellipse)
Draw a ellipse object
|
protected void |
exportFrame(JRPrintFrame frame) |
protected void |
exportGenericElement(JRGenericPrintElement element) |
protected void |
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 java.lang.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 java.lang.String |
getExporterKey() |
protected void |
writeAnchor(java.lang.String anchorName) |
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getReportContext, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters, setReportContext
public static final java.lang.String RTF_EXPORTER_KEY
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String)
.protected static final java.lang.String JR_PAGE_ANCHOR_PREFIX
protected JRExportProgressMonitor progressMonitor
protected FileBufferedWriter colorWriter
protected FileBufferedWriter fontWriter
protected FileBufferedWriter writer
protected java.io.Writer rtfWriter
protected java.io.File destFile
protected int reportIndex
protected java.util.List<java.awt.Color> colors
protected java.util.List<java.lang.String> fonts
protected JRRtfExporterContext exporterContext
public void exportReport() throws JRException
exportReport
in interface JRExporter
exportReport
in class JRAbstractExporter
JRException
protected java.lang.StringBuffer exportReportToBuffer() throws JRException
JRException
protected void exportReportToStream() throws JRException, java.io.IOException
JRException
java.io.IOException
protected void exportReportToFile() throws JRException
JRException
protected void exportPage(JRPrintPage page, boolean lastPage) throws JRException, java.io.IOException
page
- Page that will be exportedJRException
java.io.IOException
protected void exportLine(JRPrintLine line) throws java.io.IOException
line
- JasperReports line object - JRPrintLinejava.io.IOException
protected void exportRectangle(JRPrintRectangle rectangle) throws java.io.IOException
rectangle
- JasperReports rectangle object (JRPrintRectangle)java.io.IOException
protected void exportEllipse(JRPrintEllipse ellipse) throws java.io.IOException
ellipse
- JasperReports ellipse object (JRPrintElipse)java.io.IOException
public void exportText(JRPrintText text) throws java.io.IOException, JRException
text
- JasperReports text object (JRPrintText)JRException
java.io.IOException
public void exportImage(JRPrintImage printImage) throws JRException, java.io.IOException
printImage
- JasperReports image object (JRPrintImage)JRException
java.io.IOException
protected void exportFrame(JRPrintFrame frame) throws JRException, java.io.IOException
frame
- JRException
java.io.IOException
protected void exportElements(java.util.Collection<JRPrintElement> elements) throws JRException, java.io.IOException
JRException
java.io.IOException
protected void exportGenericElement(JRGenericPrintElement element)
protected void exportHyperlink(JRPrintHyperlink link) throws java.io.IOException
java.io.IOException
protected void writeAnchor(java.lang.String anchorName) throws java.io.IOException
java.io.IOException
protected java.lang.String getExporterKey()
getExporterKey
in class JRAbstractExporter
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com