|
fop 2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.render.AbstractRendererConfigurator
org.apache.fop.render.PrintRendererConfigurator
public abstract class PrintRendererConfigurator
Base Print renderer configurator (mostly handles font configuration)
| Field Summary |
|---|
| Fields inherited from class org.apache.fop.render.AbstractRendererConfigurator |
|---|
userAgent |
| Constructor Summary | |
|---|---|
PrintRendererConfigurator(FOUserAgent userAgent,
RendererConfig.RendererConfigParser rendererConfigParser)
Default constructor |
|
PrintRendererConfigurator(FOUserAgent userAgent,
RendererConfig.RendererConfigParser rendererConfigParser,
FontConfigurator<EmbedFontInfo> fontInfoConfigurator)
Default constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.fop.render.AbstractRendererConfigurator |
|---|
getType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintRendererConfigurator(FOUserAgent userAgent,
RendererConfig.RendererConfigParser rendererConfigParser)
userAgent - user agent
public PrintRendererConfigurator(FOUserAgent userAgent,
RendererConfig.RendererConfigParser rendererConfigParser,
FontConfigurator<EmbedFontInfo> fontInfoConfigurator)
userAgent - user agent| Method Detail |
|---|
protected RendererConfig getRendererConfig(IFDocumentHandler documentHandler)
throws FOPException
documentHandler - the document handler
FOPException - if an error occurs
protected RendererConfig getRendererConfig(java.lang.String mimeType)
throws FOPException
mimeType - the MIME type
FOPException - if an error occurs
protected RendererConfig getRendererConfig(Renderer renderer)
throws FOPException
renderer - the renderer
FOPException - if an error occurs
public void configure(Renderer renderer)
throws FOPException
renderer - print renderer
FOPException - if something's wrong with the config data
public void configure(IFDocumentHandler documentHandler)
throws FOPException
configure in interface IFDocumentHandlerConfiguratordocumentHandler - the document handler instance
FOPException - if an error occurs while configuring the object
public void setupFontInfo(java.lang.String mimeType,
FontInfo fontInfo)
throws FOPException
FontInfo object for the IFDocumentHandler.
setupFontInfo in interface IFDocumentHandlerConfiguratormimeType - the MIME type of the document handlerfontInfo - the font info object to set up
FOPException - 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 type
FOPException - if an error occurs
protected FontCollection createCollectionFromFontList(InternalResourceResolver resolver,
java.util.List<EmbedFontInfo> fontList)
resolver - the resource resolverfontList - the embedded font infomation
public static PrintRendererConfigurator createDefaultInstance(FOUserAgent userAgent)
|
fop 2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||