public abstract class PrintRendererConfigurator extends AbstractRendererConfigurator implements IFDocumentHandlerConfigurator
userAgent
Constructor and Description |
---|
PrintRendererConfigurator(FOUserAgent userAgent,
RendererConfig.RendererConfigParser rendererConfigParser)
Default constructor
|
PrintRendererConfigurator(FOUserAgent userAgent,
RendererConfig.RendererConfigParser rendererConfigParser,
FontConfigurator<EmbedFontInfo> fontInfoConfigurator)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
configure(IFDocumentHandler documentHandler)
Configures a intermediate format document handler.
|
void |
configure(Renderer renderer)
Builds a list of EmbedFontInfo objects for use with the setup() method.
|
protected FontCollection |
createCollectionFromFontList(InternalResourceResolver resolver,
java.util.List<EmbedFontInfo> fontList)
Creates the font collection given a list of embedded font infomation.
|
static PrintRendererConfigurator |
createDefaultInstance(FOUserAgent userAgent) |
protected FontCollection |
getCustomFontCollection(InternalResourceResolver resolver,
java.lang.String mimeType)
Returns the font collection for custom configured fonts.
|
protected abstract java.util.List<FontCollection> |
getDefaultFontCollection() |
protected RendererConfig |
getRendererConfig(IFDocumentHandler documentHandler)
Returns the renderer configuration data for a specific renderer.
|
protected RendererConfig |
getRendererConfig(Renderer renderer)
gets the renderer configuration data for a specific renderer.
|
protected RendererConfig |
getRendererConfig(java.lang.String mimeType)
gets the renderer configuration data for a specific renderer.
|
void |
setupFontInfo(java.lang.String mimeType,
FontInfo fontInfo)
Sets up the
FontInfo object for the IFDocumentHandler. |
getType
public PrintRendererConfigurator(FOUserAgent userAgent, RendererConfig.RendererConfigParser rendererConfigParser)
userAgent
- user agentpublic PrintRendererConfigurator(FOUserAgent userAgent, RendererConfig.RendererConfigParser rendererConfigParser, FontConfigurator<EmbedFontInfo> fontInfoConfigurator)
userAgent
- user agentprotected RendererConfig getRendererConfig(IFDocumentHandler documentHandler) throws FOPException
documentHandler
- the document handlerFOPException
- if an error occursprotected RendererConfig getRendererConfig(java.lang.String mimeType) throws FOPException
mimeType
- the MIME typeFOPException
- if an error occursprotected RendererConfig getRendererConfig(Renderer renderer) throws FOPException
renderer
- the rendererFOPException
- if an error occurspublic void configure(Renderer renderer) throws FOPException
renderer
- print rendererFOPException
- if something's wrong with the config datapublic void configure(IFDocumentHandler documentHandler) throws FOPException
configure
in interface IFDocumentHandlerConfigurator
documentHandler
- the document handler instanceFOPException
- if an error occurs while configuring the objectpublic void setupFontInfo(java.lang.String mimeType, FontInfo fontInfo) throws FOPException
FontInfo
object for the IFDocumentHandler.setupFontInfo
in interface IFDocumentHandlerConfigurator
mimeType
- the MIME type of the document handlerfontInfo
- the font info object to set upFOPException
- if an error occurs while configuring the objectprotected abstract java.util.List<FontCollection> getDefaultFontCollection()
protected FontCollection getCustomFontCollection(InternalResourceResolver resolver, java.lang.String mimeType) throws FOPException
resolver
- the resource resolvermimeType
- the renderer MIME typeFOPException
- if an error occursprotected FontCollection createCollectionFromFontList(InternalResourceResolver resolver, java.util.List<EmbedFontInfo> fontList)
resolver
- the resource resolverfontList
- the embedded font infomationpublic static PrintRendererConfigurator createDefaultInstance(FOUserAgent userAgent)
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.