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
-
-
Constructor Summary
Constructors Constructor Description ExcelFontFactory(org.apache.poi.ss.usermodel.Workbook workbook, ExcelColorProducer colorProducer)
Constructor for ExcelFontFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.poi.ss.usermodel.Font
getExcelFont(HSSFFontWrapper wrapper)
Creates a HSSFFont.
-
-
-
Constructor Detail
-
ExcelFontFactory
public ExcelFontFactory(org.apache.poi.ss.usermodel.Workbook workbook, ExcelColorProducer colorProducer)
Constructor for ExcelFontFactory.- Parameters:
workbook
- the workbook.
-
-
Method Detail
-
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
-
-