fop 0.95

org.apache.fop.render
Class PrintRendererConfigurator

java.lang.Object
  extended by org.apache.fop.render.AbstractRendererConfigurator
      extended by org.apache.fop.render.PrintRendererConfigurator
All Implemented Interfaces:
RendererConfigurator
Direct Known Subclasses:
AFPRendererConfigurator, Java2DRendererConfigurator, PCLRendererConfigurator, PDFRendererConfigurator, PSRendererConfigurator, TIFFRendererConfigurator, TXTRendererConfigurator

public class PrintRendererConfigurator
extends AbstractRendererConfigurator
implements RendererConfigurator

Base Print renderer configurator (mostly handles font configuration)


Field Summary
protected static org.apache.commons.logging.Log log
          logger instance
 
Fields inherited from class org.apache.fop.render.AbstractRendererConfigurator
userAgent
 
Constructor Summary
PrintRendererConfigurator(FOUserAgent userAgent)
          Default constructor
 
Method Summary
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
 
Methods inherited from class org.apache.fop.render.AbstractRendererConfigurator
getRendererConfig, getRendererConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
logger instance

Constructor Detail

PrintRendererConfigurator

public PrintRendererConfigurator(FOUserAgent userAgent)
Default constructor

Parameters:
userAgent - user agent
Method Detail

configure

public void configure(Renderer renderer)
               throws FOPException
Builds a list of EmbedFontInfo objects for use with the setup() method.

Specified by:
configure in interface RendererConfigurator
Parameters:
renderer - print renderer
Throws:
FOPException - if something's wrong with the config data

buildFontListFromConfiguration

public static java.util.List buildFontListFromConfiguration(org.apache.avalon.framework.configuration.Configuration cfg,
                                                            java.lang.String fontBaseURL,
                                                            FontResolver fontResolver,
                                                            boolean strict,
                                                            FontCache fontCache)
                                                     throws FOPException
Builds a list of EmbedFontInfo objects for use with the setup() method.

Parameters:
cfg - Configuration object
fontBaseURL - the base URL to resolve relative font URLs with
fontResolver - the FontResolver to use
strict - true if an Exception should be thrown if an error is found.
fontCache - the font cache (or null if it is disabled)
Returns:
a List of EmbedFontInfo objects.
Throws:
FOPException - If an error occurs while processing the configuration

getFontInfoFromConfiguration

public static EmbedFontInfo getFontInfoFromConfiguration(org.apache.avalon.framework.configuration.Configuration fontCfg,
                                                         FontResolver fontResolver,
                                                         boolean strict,
                                                         FontCache fontCache)
                                                  throws FOPException
Returns a font info from a font node Configuration definition

Parameters:
fontCfg - Configuration object (font node)
fontResolver - font resolver used to resolve font
strict - validate configuration strictly
fontCache - the font cache (or null if it is disabled)
Returns:
font info
Throws:
FOPException - if something's wrong with the config data

fop 0.95

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.