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 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 |
allSelector, dateFormatCache, endPageIndex, filter, fontMap, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex, styledTextUtil| Constructor and Description |
|---|
JRRtfExporter() |
JRRtfExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
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) |
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getPropertiesUtil, getReportContext, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFontMap, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters, setReportContextpublic 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 JRRtfExporterContext exporterContext
public JRRtfExporter()
JRRtfExporter(JasperReportsContext)public JRRtfExporter(JasperReportsContext jasperReportsContext)
public void exportReport()
throws JRException
exportReport in interface JRExporterexportReport in class JRAbstractExporterJRExceptionprotected StringBuffer exportReportToBuffer() throws JRException
JRExceptionprotected void exportReportToStream()
throws JRException,
IOException
JRExceptionIOExceptionprotected void exportReportToFile()
throws JRException
JRExceptionprotected void exportPage(JRPrintPage page, boolean lastPage) throws JRException, IOException
page - Page that will be exportedJRExceptionIOExceptionprotected void exportLine(JRPrintLine line) throws IOException
line - JasperReports line object - JRPrintLineIOExceptionprotected void exportRectangle(JRPrintRectangle rectangle) throws IOException
rectangle - JasperReports rectangle object (JRPrintRectangle)IOExceptionprotected void exportEllipse(JRPrintEllipse ellipse) throws IOException
ellipse - JasperReports ellipse object (JRPrintElipse)IOExceptionpublic void exportText(JRPrintText text) throws IOException, JRException
text - JasperReports text object (JRPrintText)JRExceptionIOExceptionpublic void exportImage(JRPrintImage printImage) throws JRException, IOException
printImage - JasperReports image object (JRPrintImage)JRExceptionIOExceptionprotected void exportFrame(JRPrintFrame frame) throws JRException, IOException
frame - JRExceptionIOExceptionprotected void exportElements(Collection<JRPrintElement> elements) throws JRException, IOException
JRExceptionIOExceptionprotected void exportGenericElement(JRGenericPrintElement element)
protected boolean exportHyperlink(JRPrintHyperlink link) throws IOException
IOExceptionprotected void writeShapeHyperlink(JRPrintHyperlink link) throws IOException
IOExceptionprotected void endHyperlink(boolean startedHyperlink)
throws IOException
IOExceptionprotected void writeAnchor(String anchorName) throws IOException
IOExceptionprotected String getExporterKey()
getExporterKey in class JRAbstractExporterCopyright © 2012. All Rights Reserved.