public abstract class JROpenDocumentExporter extends JRAbstractExporter
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver| Modifier and Type | Field and Description |
|---|---|
protected Color |
backcolor |
protected LinkedList<Color> |
backcolorStack |
protected String |
encoding |
static String |
IMAGE_NAME_PREFIX |
protected static int |
IMAGE_NAME_PREFIX_LEGTH |
protected List<JRPrintElementIndex> |
imagesToProcess |
protected String |
invalidCharReplacement |
protected static String |
JR_PAGE_ANCHOR_PREFIX |
protected ExporterNature |
nature |
protected int |
pageIndex |
protected JRExportProgressMonitor |
progressMonitor |
protected Map<String,String> |
rendererToImagePathMap |
protected int |
reportIndex |
protected boolean |
startPage |
protected StyleCache |
styleCache |
protected int |
tableIndex |
protected Writer |
tempBodyWriter |
protected Writer |
tempStyleWriter |
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 |
|---|
JROpenDocumentExporter() |
JROpenDocumentExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
endHyperlink(boolean isText) |
protected abstract void |
exportAnchor(String anchorName) |
protected abstract void |
exportEllipse(TableBuilder tableBuilder,
JRPrintEllipse ellipse,
JRExporterGridCell gridCell) |
protected void |
exportFrame(TableBuilder tableBuilder,
JRPrintFrame frame,
JRExporterGridCell gridCell) |
protected abstract void |
exportGenericElement(TableBuilder tableBuilder,
JRGenericPrintElement element,
JRExporterGridCell gridCell) |
protected void |
exportGrid(JRGridLayout gridLayout,
JRPrintElementIndex frameIndex) |
protected abstract void |
exportImage(TableBuilder tableBuilder,
JRPrintImage image,
JRExporterGridCell gridCell) |
protected abstract void |
exportLine(TableBuilder tableBuilder,
JRPrintLine line,
JRExporterGridCell gridCell) |
protected void |
exportPage(JRPrintPage page) |
protected void |
exportRectangle(TableBuilder tableBuilder,
JRPrintRectangle rectangle,
JRExporterGridCell gridCell) |
void |
exportReport()
Actually starts the export process.
|
protected void |
exportReportToOasisZip(OutputStream os) |
protected void |
exportStyledText(JRStyledText styledText,
Locale locale,
boolean startedHyperlink) |
protected void |
exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes,
String text,
Locale locale,
boolean startedHyperlink) |
void |
exportText(TableBuilder tableBuilder,
JRPrintText text,
JRExporterGridCell gridCell) |
protected JRPrintElementIndex |
getElementIndex(JRExporterGridCell gridCell) |
protected abstract ExporterNature |
getExporterNature(ExporterFilter filter) |
protected abstract String |
getExporterPropertiesPrefix() |
protected String |
getHyperlinkTarget(JRPrintHyperlink link) |
protected String |
getHyperlinkURL(JRPrintHyperlink link) |
JRPrintImage |
getImage(List<JasperPrint> jasperPrintList,
JRPrintElementIndex imageIndex) |
JRPrintImage |
getImage(List<JasperPrint> jasperPrintList,
String imageName) |
static String |
getImageName(JRPrintElementIndex printElementIndex)
protected void writeImageMap(String imageMapName, JRPrintHyperlink mainHyperlink, List imageMapAreas) throws IOException
{
writer.write("
|
protected String |
getImagePath(Renderable renderer,
boolean isLazy,
JRExporterGridCell gridCell) |
static JRPrintElementIndex |
getPrintElementIndex(String imageName) |
protected abstract JRPrintImage |
getPrintImageForGenericElement(JRGenericPrintElement genericPrintElement) |
protected float |
getXAlignFactor(JRPrintImage image) |
protected float |
getYAlignFactor(JRPrintImage image) |
protected void |
insertPageAnchor() |
protected void |
restoreBackcolor() |
protected void |
setBackcolor(Color color) |
protected void |
setExporterHints() |
protected boolean |
startHyperlink(JRPrintHyperlink link,
boolean isText) |
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getExporterKey, 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, setReportContextprotected static final String JR_PAGE_ANCHOR_PREFIX
public static final String IMAGE_NAME_PREFIX
protected static final int IMAGE_NAME_PREFIX_LEGTH
protected Writer tempBodyWriter
protected Writer tempStyleWriter
protected JRExportProgressMonitor progressMonitor
protected List<JRPrintElementIndex> imagesToProcess
protected int reportIndex
protected int pageIndex
protected int tableIndex
protected boolean startPage
protected String invalidCharReplacement
protected String encoding
protected LinkedList<Color> backcolorStack
protected Color backcolor
protected StyleCache styleCache
protected ExporterNature nature
public JROpenDocumentExporter()
public JROpenDocumentExporter(JasperReportsContext jasperReportsContext)
public void exportReport()
throws JRException
JRExporterexportReport in interface JRExporterexportReport in class JRAbstractExporterJRExceptionpublic JRPrintImage getImage(List<JasperPrint> jasperPrintList, String imageName) throws JRException
JRExceptionpublic JRPrintImage getImage(List<JasperPrint> jasperPrintList, JRPrintElementIndex imageIndex) throws JRException
JRExceptionprotected abstract JRPrintImage getPrintImageForGenericElement(JRGenericPrintElement genericPrintElement) throws JRException
JRExceptionprotected void exportReportToOasisZip(OutputStream os) throws JRException, IOException
JRExceptionIOExceptionprotected void exportPage(JRPrintPage page) throws JRException, IOException
JRExceptionIOExceptionprotected void exportGrid(JRGridLayout gridLayout, JRPrintElementIndex frameIndex) throws IOException, JRException
IOExceptionJRExceptionprotected abstract void exportLine(TableBuilder tableBuilder, JRPrintLine line, JRExporterGridCell gridCell) throws IOException
IOExceptionprotected void exportRectangle(TableBuilder tableBuilder, JRPrintRectangle rectangle, JRExporterGridCell gridCell) throws IOException
IOExceptionprotected abstract void exportEllipse(TableBuilder tableBuilder, JRPrintEllipse ellipse, JRExporterGridCell gridCell) throws IOException
IOExceptionpublic void exportText(TableBuilder tableBuilder, JRPrintText text, JRExporterGridCell gridCell) throws IOException
IOExceptionprotected void exportStyledText(JRStyledText styledText, Locale locale, boolean startedHyperlink) throws IOException
IOExceptionprotected void exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, Locale locale, boolean startedHyperlink) throws IOException
IOExceptionprotected abstract void exportImage(TableBuilder tableBuilder, JRPrintImage image, JRExporterGridCell gridCell) throws JRException, IOException
JRExceptionIOExceptionprotected String getImagePath(Renderable renderer, boolean isLazy, JRExporterGridCell gridCell)
protected JRPrintElementIndex getElementIndex(JRExporterGridCell gridCell)
public static String getImageName(JRPrintElementIndex printElementIndex)
public static JRPrintElementIndex getPrintElementIndex(String imageName)
protected void exportFrame(TableBuilder tableBuilder, JRPrintFrame frame, JRExporterGridCell gridCell) throws IOException, JRException
IOExceptionJRExceptionprotected abstract void exportGenericElement(TableBuilder tableBuilder, JRGenericPrintElement element, JRExporterGridCell gridCell) throws IOException, JRException
IOExceptionJRExceptionprotected void setBackcolor(Color color)
protected void restoreBackcolor()
protected float getXAlignFactor(JRPrintImage image)
protected float getYAlignFactor(JRPrintImage image)
protected boolean startHyperlink(JRPrintHyperlink link, boolean isText) throws IOException
IOExceptionprotected String getHyperlinkTarget(JRPrintHyperlink link)
protected String getHyperlinkURL(JRPrintHyperlink link)
protected void endHyperlink(boolean isText)
throws IOException
IOExceptionprotected void insertPageAnchor()
throws IOException
IOExceptionprotected void setExporterHints()
protected abstract void exportAnchor(String anchorName) throws IOException
IOExceptionprotected abstract ExporterNature getExporterNature(ExporterFilter filter)
protected abstract String getExporterPropertiesPrefix()
Copyright © 2012. All Rights Reserved.