Class AbstractHtmlExporter<RC extends HtmlReportConfiguration,C extends HtmlExporterConfiguration>
- java.lang.Object
-
- net.sf.jasperreports.engine.JRAbstractExporter<RC,C,HtmlExporterOutput,JRHtmlExporterContext>
-
- net.sf.jasperreports.engine.export.AbstractHtmlExporter<RC,C>
-
- All Implemented Interfaces:
Exporter<ExporterInput,RC,C,HtmlExporterOutput>
- Direct Known Subclasses:
HtmlExporter
public abstract class AbstractHtmlExporter<RC extends HtmlReportConfiguration,C extends HtmlExporterConfiguration> extends JRAbstractExporter<RC,C,HtmlExporterOutput,JRHtmlExporterContext>
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.JRAbstractExporter
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
CSS_TEXT_ALIGN_CENTER
protected static String
CSS_TEXT_ALIGN_JUSTIFY
protected static String
CSS_TEXT_ALIGN_LEFT
protected static String
CSS_TEXT_ALIGN_RIGHT
protected static float
DEFAULT_ZOOM
protected Map<String,HtmlFontFamily>
fontsToProcess
protected static String
HTML_VERTICAL_ALIGN_BOTTOM
protected static String
HTML_VERTICAL_ALIGN_MIDDLE
protected static String
HTML_VERTICAL_ALIGN_TOP
static String
IMAGE_NAME_PREFIX
protected static int
IMAGE_NAME_PREFIX_LEGTH
protected static String
JR_BOOKMARK_ANCHOR_PREFIX
static String
JR_PAGE_ANCHOR_PREFIX
-
Fields inherited from class net.sf.jasperreports.engine.JRAbstractExporter
allSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_EMPTY_INPUT_SOURCE_IN_BATCH_MODE, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_NO_INPUT_SOURCE, EXCEPTION_MESSAGE_KEY_NO_OUTPUT_SPECIFIED, 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, hyperlinkProducerFactory, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses
-
-
Constructor Summary
Constructors Constructor Description AbstractHtmlExporter(JasperReportsContext jasperReportsContext)
-
Method Summary
-
Methods inherited from class net.sf.jasperreports.engine.JRAbstractExporter
checkInterrupted, createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, ensureOutput, exportReport, getBooleanCellValue, getConfigurationInterface, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getDateCellValue, getDateFormat, getExporterConfiguration, getExporterContext, getExporterInput, getExporterKey, getExporterOutput, getExporterPropertiesPrefix, getHyperlinkProducer, getItemConfigurationInterface, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getPropertiesUtil, getRendererUtil, getReportContext, getReportExportConfiguration, getRepository, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, initExport, initReport, insideFrame, reset, resetExportContext, restoreElementOffsets, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperReportsContext, setOffset, setOffset, setReportContext
-
-
-
-
Field Detail
-
CSS_TEXT_ALIGN_LEFT
protected static final String CSS_TEXT_ALIGN_LEFT
- See Also:
- Constant Field Values
-
CSS_TEXT_ALIGN_RIGHT
protected static final String CSS_TEXT_ALIGN_RIGHT
- See Also:
- Constant Field Values
-
CSS_TEXT_ALIGN_CENTER
protected static final String CSS_TEXT_ALIGN_CENTER
- See Also:
- Constant Field Values
-
CSS_TEXT_ALIGN_JUSTIFY
protected static final String CSS_TEXT_ALIGN_JUSTIFY
- See Also:
- Constant Field Values
-
HTML_VERTICAL_ALIGN_TOP
protected static final String HTML_VERTICAL_ALIGN_TOP
- See Also:
- Constant Field Values
-
HTML_VERTICAL_ALIGN_MIDDLE
protected static final String HTML_VERTICAL_ALIGN_MIDDLE
- See Also:
- Constant Field Values
-
HTML_VERTICAL_ALIGN_BOTTOM
protected static final String HTML_VERTICAL_ALIGN_BOTTOM
- See Also:
- Constant Field Values
-
JR_PAGE_ANCHOR_PREFIX
public static final String JR_PAGE_ANCHOR_PREFIX
- See Also:
- Constant Field Values
-
JR_BOOKMARK_ANCHOR_PREFIX
protected static final String JR_BOOKMARK_ANCHOR_PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_ZOOM
protected static final float DEFAULT_ZOOM
- See Also:
- Constant Field Values
-
IMAGE_NAME_PREFIX
public static final String IMAGE_NAME_PREFIX
- See Also:
- Constant Field Values
-
IMAGE_NAME_PREFIX_LEGTH
protected static final int IMAGE_NAME_PREFIX_LEGTH
-
fontsToProcess
protected Map<String,HtmlFontFamily> fontsToProcess
-
-
Constructor Detail
-
AbstractHtmlExporter
public AbstractHtmlExporter(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
getImage
public static JRPrintImage getImage(List<JasperPrint> jasperPrintList, String imageName)
-
getImageName
public static String getImageName(JRPrintElementIndex printElementIndex, String fileExtension)
-
getImage
public static JRPrintImage getImage(List<JasperPrint> jasperPrintList, JRPrintElementIndex imageIndex)
-
getPrintElementIndex
public static JRPrintElementIndex getPrintElementIndex(String imageName)
-
resolveFontFamily
protected String resolveFontFamily(Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale)
-
addFontFamily
public void addFontFamily(HtmlFontFamily htmlFontFamily)
-
isOverrideHints
protected boolean isOverrideHints()
-
isEmbedImage
protected boolean isEmbedImage(JRPrintElement element)
-
isEmbeddedSvgUseFonts
protected boolean isEmbeddedSvgUseFonts(JRPrintElement element)
-
isConvertSvgToImage
protected boolean isConvertSvgToImage(JRPrintElement element)
-
isUseBackgroundImageToAlign
protected boolean isUseBackgroundImageToAlign(JRPrintElement element)
-
getStyledText
protected JRStyledText getStyledText(JRPrintText textElement, boolean setBackcolor)
- Overrides:
getStyledText
in classJRAbstractExporter<RC extends HtmlReportConfiguration,C extends HtmlExporterConfiguration,HtmlExporterOutput,JRHtmlExporterContext>
-
-