Class IconLabelElementXlsxHandler
java.lang.Object
net.sf.jasperreports.components.iconlabel.IconLabelElementXlsxHandler
- All Implemented Interfaces:
GenericElementHandler,GenericElementXlsxHandler
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexportElement(JRXlsxExporterContext exporterContext, JRGenericPrintElement element, JRExporterGridCell gridCell, int colIndex, int rowIndex) Exports a generic element.getImage(JRXlsxExporterContext exporterContext, JRGenericPrintElement element) Creates an equivalent image of theJRGenericPrintElementelement to be exported instead.static IconLabelElementXlsxHandlerbooleantoExport(JRGenericPrintElement element) Decides whether a generic print element is to be exported.
-
Constructor Details
-
IconLabelElementXlsxHandler
public IconLabelElementXlsxHandler()
-
-
Method Details
-
getInstance
-
exportElement
public void exportElement(JRXlsxExporterContext exporterContext, JRGenericPrintElement element, JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException Description copied from interface:GenericElementXlsxHandlerExports a generic element.Access to the exporter output and environment is provided via the
JRXlsxExporterContextargument.- Specified by:
exportElementin interfaceGenericElementXlsxHandler- Parameters:
exporterContext- the exporter contextelement- the generic element to export- Throws:
JRException
-
toExport
Description copied from interface:GenericElementHandlerDecides whether a generic print element is to be exported.- Specified by:
toExportin interfaceGenericElementHandler- Parameters:
element- the element- Returns:
- whether the element is to be exported or skipped
-
getImage
public JRPrintImage getImage(JRXlsxExporterContext exporterContext, JRGenericPrintElement element) throws JRException Description copied from interface:GenericElementXlsxHandlerCreates an equivalent image of theJRGenericPrintElementelement to be exported instead.- Specified by:
getImagein interfaceGenericElementXlsxHandler- Parameters:
element- the generic element to export- Returns:
- JRPrintImage the equivalent image
- Throws:
JRException
-