org.apache.fop.render
public class PrintRendererConfigurator extends AbstractRendererConfigurator implements RendererConfigurator
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
logger instance
|
userAgent| Constructor and Description |
|---|
PrintRendererConfigurator(FOUserAgent userAgent)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List |
buildFontListFromConfiguration(org.apache.avalon.framework.configuration.Configuration cfg,
java.lang.String fontBaseURL,
FontResolver fontResolver,
boolean strict,
FontCache fontCache)
Builds a list of EmbedFontInfo objects for use with the setup() method.
|
void |
configure(Renderer renderer)
Builds a list of EmbedFontInfo objects for use with the setup() method.
|
static EmbedFontInfo |
getFontInfoFromConfiguration(org.apache.avalon.framework.configuration.Configuration fontCfg,
FontResolver fontResolver,
boolean strict,
FontCache fontCache)
Returns a font info from a font node Configuration definition
|
getRendererConfig, getRendererConfigpublic PrintRendererConfigurator(FOUserAgent userAgent)
userAgent - user agentpublic void configure(Renderer renderer) throws FOPException
configure in interface RendererConfiguratorrenderer - print rendererFOPException - if something's wrong with the config datapublic static java.util.List buildFontListFromConfiguration(org.apache.avalon.framework.configuration.Configuration cfg,
java.lang.String fontBaseURL,
FontResolver fontResolver,
boolean strict,
FontCache fontCache)
throws FOPException
cfg - Configuration objectfontBaseURL - the base URL to resolve relative font URLs withfontResolver - the FontResolver to usestrict - true if an Exception should be thrown if an error is found.fontCache - the font cache (or null if it is disabled)FOPException - If an error occurs while processing the configurationpublic static EmbedFontInfo getFontInfoFromConfiguration(org.apache.avalon.framework.configuration.Configuration fontCfg, FontResolver fontResolver, boolean strict, FontCache fontCache) throws FOPException
fontCfg - Configuration object (font node)fontResolver - font resolver used to resolve fontstrict - validate configuration strictlyfontCache - the font cache (or null if it is disabled)FOPException - if something's wrong with the config dataCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.