Class IconLabelElementXlsxHandler
- java.lang.Object
-
- net.sf.jasperreports.components.iconlabel.IconLabelElementXlsxHandler
-
- All Implemented Interfaces:
GenericElementHandler
,GenericElementXlsxHandler
public class IconLabelElementXlsxHandler extends Object implements GenericElementXlsxHandler
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description IconLabelElementXlsxHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exportElement(JRXlsxExporterContext exporterContext, JRGenericPrintElement element, JRExporterGridCell gridCell, int colIndex, int rowIndex)
Exports a generic element.JRPrintImage
getImage(JRXlsxExporterContext exporterContext, JRGenericPrintElement element)
Creates an equivalent image of theJRGenericPrintElement
element to be exported instead.static IconLabelElementXlsxHandler
getInstance()
boolean
toExport(JRGenericPrintElement element)
Decides whether a generic print element is to be exported.
-
-
-
Method Detail
-
getInstance
public static IconLabelElementXlsxHandler getInstance()
-
exportElement
public void exportElement(JRXlsxExporterContext exporterContext, JRGenericPrintElement element, JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException
Description copied from interface:GenericElementXlsxHandler
Exports a generic element.Access to the exporter output and environment is provided via the
JRXlsxExporterContext
argument.- Specified by:
exportElement
in interfaceGenericElementXlsxHandler
- Parameters:
exporterContext
- the exporter contextelement
- the generic element to export- Throws:
JRException
-
toExport
public boolean toExport(JRGenericPrintElement element)
Description copied from interface:GenericElementHandler
Decides whether a generic print element is to be exported.- Specified by:
toExport
in 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:GenericElementXlsxHandler
Creates an equivalent image of theJRGenericPrintElement
element to be exported instead.- Specified by:
getImage
in interfaceGenericElementXlsxHandler
element
- the generic element to export- Returns:
- JRPrintImage the equivalent image
- Throws:
JRException
-
-