HtmlExporter
.public class JRXhtmlExporter extends AbstractHtmlExporter<HtmlReportConfiguration,HtmlExporterConfiguration>
Modifier and Type | Class and Description |
---|---|
protected class |
JRXhtmlExporter.ExporterContext
Deprecated.
|
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange
Modifier and Type | Field and Description |
---|---|
protected int |
bottomLimit
Deprecated.
|
protected int |
elementIndex
Deprecated.
|
protected List<net.sf.jasperreports.engine.export.JRXhtmlExporter.FrameInfo> |
frameInfoStack
Deprecated.
|
protected boolean |
hyperlinkStarted
Deprecated.
|
protected Map<Pair<String,Rectangle>,String> |
imageMaps
Deprecated.
|
protected int |
leftLimit
Deprecated.
|
protected int |
pageIndex
Deprecated.
|
static String |
PROPERTY_IGNORE_HYPERLINK
Deprecated.
|
protected RenderersCache |
renderersCache
Deprecated.
|
protected Map<String,String> |
rendererToImagePathMap
Deprecated.
|
protected int |
reportIndex
Deprecated.
|
protected int |
rightLimit
Deprecated.
|
protected JRHyperlinkTargetProducerFactory |
targetProducerFactory
Deprecated.
|
protected int |
topLimit
Deprecated.
|
protected Writer |
writer
Deprecated.
|
static String |
XHTML_EXPORTER_KEY
Deprecated.
The exporter key, as used in
GenericElementHandlerEnviroment.getElementHandler(net.sf.jasperreports.engine.JRGenericElementType, String) . |
CSS_TEXT_ALIGN_CENTER, CSS_TEXT_ALIGN_JUSTIFY, CSS_TEXT_ALIGN_LEFT, CSS_TEXT_ALIGN_RIGHT, DEFAULT_ZOOM, fontHandler, fontsToProcess, HTML_VERTICAL_ALIGN_BOTTOM, HTML_VERTICAL_ALIGN_MIDDLE, HTML_VERTICAL_ALIGN_TOP, IMAGE_NAME_PREFIX, IMAGE_NAME_PREFIX_LEGTH, imageHandler, JR_BOOKMARK_ANCHOR_PREFIX, JR_PAGE_ANCHOR_PREFIX, resourceHandler
allSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_MIXED_CALLS_NOT_ALLOWED, EXCEPTION_MESSAGE_KEY_OUTPUT_WRITER_ERROR, EXCEPTION_MESSAGE_KEY_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_START_PAGE_INDEX_OUT_OF_RANGE, exporterConfiguration, exporterContext, exporterInput, exporterOutput, filter, fontUtil, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses
Constructor and Description |
---|
JRXhtmlExporter()
Deprecated.
|
JRXhtmlExporter(JasperReportsContext jasperReportsContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendBackcolorStyle(JRPrintElement element,
StringBuilder styleBuilder)
Deprecated.
|
protected boolean |
appendBorderStyle(JRLineBox box,
StringBuilder styleBuilder)
Deprecated.
|
protected void |
appendPositionStyle(int x,
int y,
StringBuilder styleBuilder)
Deprecated.
|
protected void |
appendPositionStyle(JRPrintElement element,
JRBoxContainer boxContainer,
StringBuilder styleBuilder)
Deprecated.
|
protected void |
appendPositionStyle(JRPrintElement element,
JRPen pen,
StringBuilder styleBuilder)
Deprecated.
|
protected void |
appendSizeStyle(int width,
int height,
StringBuilder styleBuilder)
Deprecated.
|
protected void |
appendSizeStyle(JRPrintElement element,
JRBoxContainer boxContainer,
StringBuilder styleBuilder)
Deprecated.
|
protected void |
appendSizeStyle(JRPrintElement element,
JRPen pen,
StringBuilder styleBuilder)
Deprecated.
|
protected void |
endHyperlink()
Deprecated.
|
protected void |
ensureOutput()
Deprecated.
|
protected void |
exportElements(List<JRPrintElement> elements)
Deprecated.
|
void |
exportFrame(JRPrintFrame frame)
Deprecated.
|
protected void |
exportGenericElement(JRGenericPrintElement element)
Deprecated.
|
protected void |
exportImage(JRPrintImage image)
Deprecated.
|
protected void |
exportLine(JRPrintLine line)
Deprecated.
|
protected void |
exportPage(JRPrintPage page)
Deprecated.
|
protected void |
exportRectangle(JRPrintGraphicElement element)
Deprecated.
|
void |
exportReport()
Deprecated.
Performs the export.
|
protected void |
exportReportToWriter()
Deprecated.
|
protected void |
exportStyledText(JRPrintText printText,
JRStyledText styledText,
String tooltip)
Deprecated.
|
protected void |
exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes,
String text,
String tooltip,
Locale locale,
LineSpacingEnum lineSpacing,
Float lineSpacingSize,
float lineSpacingFactor,
Color backcolor)
Deprecated.
|
protected void |
exportText(JRPrintText text)
Deprecated.
|
protected Class<HtmlExporterConfiguration> |
getConfigurationInterface()
Deprecated.
|
String |
getDataAttributes(JRPrintElement element)
Deprecated.
|
protected JRPrintElementIndex |
getElementIndex()
Deprecated.
|
JasperPrint |
getExportedReport()
Deprecated.
|
String |
getExporterKey()
Deprecated.
|
String |
getExporterPropertiesPrefix()
Deprecated.
Returns the properties prefix for the current exporter.
|
Map<JRExporterParameter,Object> |
getExportParameters()
Deprecated.
|
protected String |
getHyperlinkTarget(JRPrintHyperlink link)
Deprecated.
|
protected String |
getHyperlinkURL(JRPrintHyperlink link)
Deprecated.
|
protected int |
getInsideBorderOffset(float borderWidth,
boolean small)
Deprecated.
|
protected Class<HtmlReportConfiguration> |
getItemConfigurationInterface()
Deprecated.
|
protected void |
initExport()
Deprecated.
|
protected void |
initReport()
Deprecated.
|
protected boolean |
startHyperlink(JRPrintHyperlink link)
Deprecated.
|
String |
toSizeUnit(float size)
Deprecated.
|
String |
toSizeUnit(int size)
Deprecated.
Replaced by
toSizeUnit(float) . |
float |
toZoom(float size)
Deprecated.
|
int |
toZoom(int size)
Deprecated.
Replaced by
toZoom(float) . |
protected void |
writeImageAreaCoordinates(int[] coords)
Deprecated.
|
protected void |
writeImageAreaHyperlink(JRPrintHyperlink hyperlink)
Deprecated.
|
protected void |
writeImageMap(String imageMapName,
JRPrintImage image,
List<JRPrintImageAreaHyperlink> imageMapAreas)
Deprecated.
|
addFontFamily, getFontFamily, getFontHandler, getImage, getImage, getImageHandler, getImageName, getImageName, getPrintElementIndex, getResourceHandler, getStyledText, handleFont, isEmbeddedSvgUseFonts, isEmbedImage, resolveFontFamily, setFontHandler, setImageHandler, setResourceHandler
createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getCustomHandler, getDateCellValue, getDateFormat, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getParameter, getParameters, getPropertiesUtil, getRendererUtil, getReportContext, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, insideFrame, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContext
public static final String PROPERTY_IGNORE_HYPERLINK
public static final String XHTML_EXPORTER_KEY
GenericElementHandlerEnviroment.getElementHandler(net.sf.jasperreports.engine.JRGenericElementType, String)
.protected Writer writer
protected RenderersCache renderersCache
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 JRHyperlinkTargetProducerFactory targetProducerFactory
protected boolean hyperlinkStarted
public JRXhtmlExporter()
JRXhtmlExporter(JasperReportsContext)
public JRXhtmlExporter(JasperReportsContext jasperReportsContext)
protected Class<HtmlExporterConfiguration> getConfigurationInterface()
protected Class<HtmlReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
public void exportReport() throws JRException
Exporter
exportReport
in interface Exporter<ExporterInput,HtmlReportConfiguration,HtmlExporterConfiguration,HtmlExporterOutput>
exportReport
in class JRAbstractExporter<HtmlReportConfiguration,HtmlExporterConfiguration,HtmlExporterOutput,JRHtmlExporterContext>
JRException
protected void initExport()
protected void initReport()
protected void exportReportToWriter() throws JRException, IOException
JRException
IOException
protected void exportPage(JRPrintPage page) throws JRException, IOException
JRException
IOException
protected void exportElements(List<JRPrintElement> elements) throws IOException, JRException
IOException
JRException
protected void exportLine(JRPrintLine line) throws IOException
IOException
protected void exportRectangle(JRPrintGraphicElement element) throws IOException
IOException
protected void exportStyledText(JRPrintText printText, JRStyledText styledText, String tooltip) throws IOException
IOException
protected void exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, String tooltip, Locale locale, LineSpacingEnum lineSpacing, Float lineSpacingSize, float lineSpacingFactor, Color backcolor) throws IOException
IOException
protected void exportText(JRPrintText text) throws IOException
IOException
protected boolean startHyperlink(JRPrintHyperlink link) throws IOException
IOException
protected String getHyperlinkTarget(JRPrintHyperlink link)
protected String getHyperlinkURL(JRPrintHyperlink link)
protected void endHyperlink() throws IOException
IOException
protected boolean appendBorderStyle(JRLineBox box, StringBuilder styleBuilder)
protected int getInsideBorderOffset(float borderWidth, boolean small)
protected void appendSizeStyle(JRPrintElement element, JRBoxContainer boxContainer, StringBuilder styleBuilder)
protected void appendSizeStyle(JRPrintElement element, JRPen pen, StringBuilder styleBuilder)
protected void appendSizeStyle(int width, int height, StringBuilder styleBuilder)
protected void appendPositionStyle(JRPrintElement element, JRBoxContainer boxContainer, StringBuilder styleBuilder)
protected void appendPositionStyle(JRPrintElement element, JRPen pen, StringBuilder styleBuilder)
protected void appendPositionStyle(int x, int y, StringBuilder styleBuilder)
protected void appendBackcolorStyle(JRPrintElement element, StringBuilder styleBuilder)
protected void exportImage(JRPrintImage image) throws JRException, IOException
JRException
IOException
protected JRPrintElementIndex getElementIndex()
protected void writeImageMap(String imageMapName, JRPrintImage image, List<JRPrintImageAreaHyperlink> imageMapAreas) throws IOException
IOException
protected void writeImageAreaCoordinates(int[] coords) throws IOException
IOException
protected void writeImageAreaHyperlink(JRPrintHyperlink hyperlink) throws IOException
IOException
public String getDataAttributes(JRPrintElement element)
public void exportFrame(JRPrintFrame frame) throws IOException, JRException
IOException
JRException
protected void exportGenericElement(JRGenericPrintElement element) throws IOException
IOException
public Map<JRExporterParameter,Object> getExportParameters()
public String getExporterPropertiesPrefix()
JRAbstractExporter
getExporterPropertiesPrefix
in class JRAbstractExporter<HtmlReportConfiguration,HtmlExporterConfiguration,HtmlExporterOutput,JRHtmlExporterContext>
public JasperPrint getExportedReport()
public String toSizeUnit(float size)
public String toSizeUnit(int size)
toSizeUnit(float)
.public float toZoom(float size)
public int toZoom(int size)
toZoom(float)
.public String getExporterKey()
Copyright © 2017. All rights reserved.