org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper
Class HSSFCellStyleProducer
java.lang.Object
org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper.HSSFCellStyleProducer
public class HSSFCellStyleProducer
- extends Object
The cellstyle producer converts the JFreeReport content into excel cell styles. This class is able to use the POI 2.0
features to build data cells.
- Author:
- Thomas Morgner
HSSFCellStyleProducer
public HSSFCellStyleProducer(org.apache.poi.ss.usermodel.Workbook workbook,
boolean hardLimit,
ExcelColorProducer colorProducer,
ExcelColorProducer fontColorProducer)
- The class does the dirty work of creating the HSSF-objects.
- Parameters:
workbook
- the workbook for which the styles should be created.
createCellStyle
public org.apache.poi.ss.usermodel.CellStyle createCellStyle(RenderBox element,
CellBackground bg)
- Creates a HSSFCellStyle based on the given ExcelDataCellStyle. If a similiar cell style was previously generated,
then reuse that cached result.
- Parameters:
element
- can be null for background only cells.bg
- the optional background style for the table cell.
- Returns:
- the generated or cached HSSFCellStyle.
getFontFactory
public ExcelFontFactory getFontFactory()