org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper
Class ExcelFontFactory
java.lang.Object
org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper.ExcelFontFactory
public class ExcelFontFactory
- extends Object
This class keeps track of all fonts that we have used so far in our Excel file.
Excel fonts should never be created directly, as excel does not like the idea of having too many font definitions.
- Author:
- Heiko Evermann
ExcelFontFactory
public ExcelFontFactory(org.apache.poi.ss.usermodel.Workbook workbook,
ExcelColorProducer colorProducer)
- Constructor for ExcelFontFactory.
- Parameters:
workbook
- the workbook.
getExcelFont
public org.apache.poi.ss.usermodel.Font getExcelFont(HSSFFontWrapper wrapper)
- Creates a HSSFFont. The created font is cached and reused later, if a similiar font is requested.
- Parameters:
wrapper
- the font information that should be used to produce the excel font
- Returns:
- the created or a cached HSSFFont instance