org.jfree.report.modules.output.table.xls
Class HSSFCellStyleProducer

java.lang.Object
  |
  +--org.jfree.report.modules.output.table.xls.HSSFCellStyleProducer

public class HSSFCellStyleProducer
extends java.lang.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

Constructor Summary
HSSFCellStyleProducer(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook, boolean hardLimit)
          The class does the dirty work of creating the HSSF-objects.
 
Method Summary
 org.apache.poi.hssf.usermodel.HSSFCellStyle createCellStyle(MetaElement element, TableCellBackground bg)
          Creates a HSSFCellStyle based on the given ExcelDataCellStyle.
 org.apache.poi.hssf.usermodel.HSSFCellStyle getEmptyCellStyle()
          Gets the default style, which is used for empty cells.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSSFCellStyleProducer

public HSSFCellStyleProducer(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
                             boolean hardLimit)
The class does the dirty work of creating the HSSF-objects.
Parameters:
workbook - the workbook for which the styles should be created.
Method Detail

getEmptyCellStyle

public org.apache.poi.hssf.usermodel.HSSFCellStyle getEmptyCellStyle()
Gets the default style, which is used for empty cells.
Returns:
the default style for empty cells.

createCellStyle

public org.apache.poi.hssf.usermodel.HSSFCellStyle createCellStyle(MetaElement element,
                                                                   TableCellBackground bg)
Creates a HSSFCellStyle based on the given ExcelDataCellStyle. If a similiar cell style was previously generated, then reuse that cached result.
Parameters:
element - never null
bg - the background style for the table cell.
Returns:
the generated or cached HSSFCellStyle.