public class FontInfoConfigurator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
logger instance
|
Constructor and Description |
---|
FontInfoConfigurator(org.apache.avalon.framework.configuration.Configuration cfg,
FontManager fontManager,
FontResolver fontResolver,
FontEventListener listener,
boolean strict)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addFonts(org.apache.avalon.framework.configuration.Configuration fontsCfg,
FontCache fontCache,
java.util.List fontInfoList)
Populates the font info list from the fonts configuration
|
void |
configure(java.util.List fontInfoList)
Initializes font info settings from the user configuration
|
protected EmbedFontInfo |
getFontInfo(org.apache.avalon.framework.configuration.Configuration fontCfg,
FontCache fontCache)
Returns a font info from a font node Configuration definition
|
public FontInfoConfigurator(org.apache.avalon.framework.configuration.Configuration cfg, FontManager fontManager, FontResolver fontResolver, FontEventListener listener, boolean strict)
cfg
- the configuration objectfontManager
- the font managerfontResolver
- the font resolverlistener
- the font event listenerstrict
- true if an Exception should be thrown if an error is found.public void configure(java.util.List fontInfoList) throws FOPException
fontInfoList
- a font info listFOPException
- if an exception occurs while processing the configurationprotected void addFonts(org.apache.avalon.framework.configuration.Configuration fontsCfg, FontCache fontCache, java.util.List fontInfoList) throws FOPException
fontsCfg
- a fonts configurationfontCache
- a font cachefontInfoList
- a font info listFOPException
- if an exception occurs while processing the configurationprotected EmbedFontInfo getFontInfo(org.apache.avalon.framework.configuration.Configuration fontCfg, FontCache fontCache) throws FOPException
fontCfg
- Configuration object (font node)fontCache
- the font cache (or null if it is disabled)FOPException
- if something's wrong with the config dataCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.