public class JRXhtmlExporter extends JRAbstractExporter
| Modifier and Type | Class and Description |
|---|---|
protected class |
JRXhtmlExporter.ExporterContext |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolverallSelector, 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 |
|---|
JRXhtmlExporter() |
JRXhtmlExporter(JasperReportsContext jasperReportsContext) |
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, 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 XHTML_EXPORTER_KEY
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String).protected static final String JR_PAGE_ANCHOR_PREFIX
protected static final float DEFAULT_ZOOM
protected static final String CSS_TEXT_ALIGN_LEFT
protected static final String CSS_TEXT_ALIGN_RIGHT
protected static final String CSS_TEXT_ALIGN_CENTER
protected static final String CSS_TEXT_ALIGN_JUSTIFY
protected static final String HTML_VERTICAL_ALIGN_TOP
protected static final String HTML_VERTICAL_ALIGN_MIDDLE
protected static final String HTML_VERTICAL_ALIGN_BOTTOM
public static final String IMAGE_NAME_PREFIX
protected static final int IMAGE_NAME_PREFIX_LEGTH
protected Writer writer
protected JRExportProgressMonitor progressMonitor
protected List<JRPrintElementIndex> imagesToProcess
protected int reportIndex
protected int pageIndex
protected List<net.sf.jasperreports.engine.export.JRXhtmlExporter.FrameInfo> frameInfoStack
protected int elementIndex
protected int topLimit
protected int leftLimit
protected int rightLimit
protected int bottomLimit
protected File imagesDir
protected String imagesURI
protected boolean isOutputImagesToDir
protected boolean isWhitePageBackground
protected String encoding
protected String sizeUnit
protected float zoom
protected boolean isWrapBreakWord
protected boolean isIgnorePageMargins
protected String htmlHeader
protected String betweenPagesHtml
protected String htmlFooter
protected JRHyperlinkTargetProducerFactory targetProducerFactory
protected boolean hyperlinkStarted
protected JRHtmlExporterContext exporterContext
public JRXhtmlExporter()
public JRXhtmlExporter(JasperReportsContext jasperReportsContext)
public void exportReport()
throws JRException
JRExporterexportReport in interface JRExporterexportReport in class JRAbstractExporterJRExceptionpublic static JRPrintImage getImage(List<JasperPrint> jasperPrintList, String imageName)
public static JRPrintImage getImage(List<JasperPrint> jasperPrintList, JRPrintElementIndex imageIndex)
protected void exportReportToWriter()
throws JRException,
IOException
JRExceptionIOExceptionprotected void exportPage(JRPrintPage page) throws JRException, IOException
JRExceptionIOExceptionprotected void exportElements(List<JRPrintElement> elements) throws IOException, JRException
IOExceptionJRExceptionprotected void exportLine(JRPrintLine line) throws IOException
IOExceptionprotected void exportRectangle(JRPrintGraphicElement element) throws IOException
IOExceptionprotected void exportStyledText(JRStyledText styledText, Locale locale) throws IOException
IOExceptionprotected void exportStyledText(JRStyledText styledText, String tooltip, Locale locale, LineSpacingEnum lineSpacing, Float lineSpacingSize) throws IOException
IOExceptionprotected void exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, Locale locale) throws IOException
IOExceptionprotected void exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, String tooltip, Locale locale, LineSpacingEnum lineSpacing, Float lineSpacingSize) throws IOException
IOExceptionprotected void exportText(JRPrintText text) throws IOException
IOExceptionprotected boolean startHyperlink(JRPrintHyperlink link) throws IOException
IOExceptionprotected String getHyperlinkTarget(JRPrintHyperlink link)
protected String getHyperlinkURL(JRPrintHyperlink link)
protected void endHyperlink()
throws IOException
IOExceptionprotected boolean appendBorderStyle(JRLineBox box, StringBuffer styleBuffer)
protected int getInsideBorderOffset(float borderWidth,
boolean small)
protected void appendSizeStyle(JRPrintElement element, JRBoxContainer boxContainer, StringBuffer styleBuffer)
protected void appendSizeStyle(JRPrintElement element, JRPen pen, StringBuffer styleBuffer)
protected void appendSizeStyle(int width,
int height,
StringBuffer styleBuffer)
protected void appendPositionStyle(JRPrintElement element, JRBoxContainer boxContainer, StringBuffer styleBuffer)
protected void appendPositionStyle(JRPrintElement element, JRPen pen, StringBuffer styleBuffer)
protected void appendPositionStyle(int x,
int y,
StringBuffer styleBuffer)
protected void appendBackcolorStyle(JRPrintElement element, StringBuffer styleBuffer)
protected void exportImage(JRPrintImage image) throws JRException, IOException
JRExceptionIOExceptionprotected JRPrintElementIndex getElementIndex()
protected void writeImageMap(String imageMapName, JRPrintImage image, List<JRPrintImageAreaHyperlink> imageMapAreas) throws IOException
IOExceptionprotected void writeImageAreaCoordinates(int[] coords)
throws IOException
IOExceptionprotected void writeImageAreaHyperlink(JRPrintHyperlink hyperlink) throws IOException
IOExceptionpublic static String getImageName(JRPrintElementIndex printElementIndex)
public static JRPrintElementIndex getPrintElementIndex(String imageName)
protected void exportFrame(JRPrintFrame frame) throws IOException, JRException
IOExceptionJRExceptionprotected void exportGenericElement(JRGenericPrintElement element) throws IOException
IOExceptionpublic Map<JRExporterParameter,Object> getExportParameters()
public String getExportPropertiesPrefix()
public JasperPrint getExportedReport()
public String toSizeUnit(int size)
public int toZoom(int size)
protected JRStyledText getStyledText(JRPrintText textElement, boolean setBackcolor)
getStyledText in class JRAbstractExporterprotected String getExporterKey()
getExporterKey in class JRAbstractExporterCopyright © 2012. All Rights Reserved.