Package org.apache.fop.render.afp
Class AFPRendererConfigurator
- java.lang.Object
-
- org.apache.fop.render.AbstractRendererConfigurator
-
- org.apache.fop.render.PrintRendererConfigurator
-
- org.apache.fop.render.afp.AFPRendererConfigurator
-
- All Implemented Interfaces:
IFDocumentHandlerConfigurator
public class AFPRendererConfigurator extends PrintRendererConfigurator
AFP Renderer configurator
-
-
Field Summary
Fields Modifier and Type Field Description private AFPEventProducer
eventProducer
private static org.apache.commons.logging.Log
log
-
Fields inherited from class org.apache.fop.render.AbstractRendererConfigurator
userAgent
-
-
Constructor Summary
Constructors Constructor Description AFPRendererConfigurator(FOUserAgent userAgent, RendererConfig.RendererConfigParser rendererConfigParser)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
configure(AFPDocumentHandler documentHandler, AFPRendererConfig config)
void
configure(IFDocumentHandler documentHandler)
Configures a intermediate format document handler.private java.util.List<AFPFontInfo>
createFontsList(AFPFontConfig fontConfig, java.lang.String mimeType)
protected FontCollection
getCustomFontCollection(InternalResourceResolver uriResolverWrapper, java.lang.String mimeType)
Returns the font collection for custom configured fonts.protected java.util.List<FontCollection>
getDefaultFontCollection()
-
Methods inherited from class org.apache.fop.render.PrintRendererConfigurator
configure, createCollectionFromFontList, createDefaultInstance, getRendererConfig, getRendererConfig, getRendererConfig, setupFontInfo
-
Methods inherited from class org.apache.fop.render.AbstractRendererConfigurator
getType
-
-
-
-
Field Detail
-
log
private static org.apache.commons.logging.Log log
-
eventProducer
private final AFPEventProducer eventProducer
-
-
Constructor Detail
-
AFPRendererConfigurator
public AFPRendererConfigurator(FOUserAgent userAgent, RendererConfig.RendererConfigParser rendererConfigParser)
Default constructor- Parameters:
userAgent
- user agent
-
-
Method Detail
-
configure
public void configure(IFDocumentHandler documentHandler) throws FOPException
Description copied from class:PrintRendererConfigurator
Configures a intermediate format document handler.- Specified by:
configure
in interfaceIFDocumentHandlerConfigurator
- Overrides:
configure
in classPrintRendererConfigurator
- Parameters:
documentHandler
- the document handler instance- Throws:
FOPException
- if an error occurs while configuring the object
-
configure
private void configure(AFPDocumentHandler documentHandler, AFPRendererConfig config)
-
getDefaultFontCollection
protected java.util.List<FontCollection> getDefaultFontCollection()
- Specified by:
getDefaultFontCollection
in classPrintRendererConfigurator
-
getCustomFontCollection
protected FontCollection getCustomFontCollection(InternalResourceResolver uriResolverWrapper, java.lang.String mimeType) throws FOPException
Description copied from class:PrintRendererConfigurator
Returns the font collection for custom configured fonts.- Overrides:
getCustomFontCollection
in classPrintRendererConfigurator
- Parameters:
uriResolverWrapper
- the resource resolvermimeType
- the renderer MIME type- Returns:
- the font collection
- Throws:
FOPException
- if an error occurs
-
createFontsList
private java.util.List<AFPFontInfo> createFontsList(AFPFontConfig fontConfig, java.lang.String mimeType) throws FOPException, java.io.IOException
- Throws:
FOPException
java.io.IOException
-
-