public final class FontBuilder extends AbstractResourceBuilder<FontItem,FontParams,Font>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER
The class logger.
|
| Constructor and Description |
|---|
FontBuilder() |
| Modifier and Type | Method and Description |
|---|---|
private Font |
buildFamilyFont(FamilyFont familyFont)
Build a Family Font with name and size.
|
private Font |
buildRealFont(RealFont rFont)
Build a real font with name and size.
|
protected Font |
buildResource(FontItem fontItem,
FontParams jrFont)
Build the resource requested.
|
private void |
checkFontStatus(FontParams fontParams)
Load the font file.
|
private String |
transformFontName(String fontName)
Transform the font name by replacing _ by space.
|
get, getParam, getParamKey, set, storeParamsprotected Font buildResource(FontItem fontItem, FontParams jrFont)
buildResource in class AbstractResourceBuilder<FontItem,FontParams,Font>fontItem - the parameter item used to identify the resource elementjrFont - the primitive parameters used to build the resourceprivate Font buildRealFont(RealFont rFont)
rFont - the real font enumprivate Font buildFamilyFont(FamilyFont familyFont)
familyFont - the family font enumprivate String transformFontName(String fontName)
fontName - the font name to transformprivate void checkFontStatus(FontParams fontParams)
fontParams - the name of the font to loadCopyright © 2011–2014 JRebirth OSS. All rights reserved.