| java.lang.Object org.jfree.report.modules.output.table.xls.helper.HSSFCellStyleProducer
HSSFCellStyleProducer | public class HSSFCellStyleProducer (Code) | | 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 | |
public | HSSFCellStyleProducer(HSSFWorkbook workbook, boolean hardLimit) The class does the dirty work of creating the HSSF-objects. |
HSSFCellStyleProducer | public HSSFCellStyleProducer(HSSFWorkbook workbook, boolean hardLimit)(Code) | | The class does the dirty work of creating the HSSF-objects.
Parameters: workbook - the workbook for which the styles should be created. |
convertAlignment | protected static short convertAlignment(ElementAlignment e)(Code) | | Converts the given element alignment into one of the
HSSFCellStyle-constants.
Parameters: e - the JFreeReport element alignment. the HSSFCellStyle-Alignment. throws: IllegalArgumentException - if an Unknown JFreeReport alignment isgiven. |
createCellStyle | public HSSFCellStyle createCellStyle(RenderBox element, TableCellDefinition bg)(Code) | | 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 Parameters: bg - the background style for the table cell. the generated or cached HSSFCellStyle. |
getEmptyCellStyle | public HSSFCellStyle getEmptyCellStyle()(Code) | | Gets the default style, which is used for empty cells.
the default style for empty cells. |
translateStroke | protected static short translateStroke(BorderStyle borderStyle, long widthRaw)(Code) | | Tries to translate the given stroke width into one of the predefined excel
border styles.
Parameters: widthRaw - the AWT-Stroke-Width. the translated excel border width. |
|
|