org.apache.fop.apps

Class FopFactoryConfigurator


public class FopFactoryConfigurator
extends java.lang.Object

FopFactory configurator

Field Summary

static boolean
DEFAULT_BREAK_INDENT_INHERITANCE
Defines if FOP should use an alternative rule to determine text indents
static String
DEFAULT_PAGE_HEIGHT
Defines the default page-height
static String
DEFAULT_PAGE_WIDTH
Defines the default page-width
static float
DEFAULT_SOURCE_RESOLUTION
Defines the default source resolution (72dpi) for FOP
static boolean
DEFAULT_STRICT_FO_VALIDATION
Defines if FOP should use strict validation for FO and user config
static boolean
DEFAULT_STRICT_USERCONFIG_VALIDATION
Defines if FOP should validate the user config strictly
static float
DEFAULT_TARGET_RESOLUTION
Defines the default target resolution (72dpi) for FOP
static boolean
DEFAULT_USE_CACHE
Use cache (record previously detected font triplet info)

Constructor Summary

FopFactoryConfigurator(FopFactory factory)
Default constructor

Method Summary

void
configure(FopFactory factory)
Initializes user agent settings from the user configuration file, if present: baseURL, resolution, default page size,...
Configuration
getUserConfig()
Get the avalon user configuration.
void
setUserConfig(Configuration cfg)
Set the user configuration.
void
setUserConfig(File userConfigFile)
Set the user configuration.
void
setUserConfig(String uri)
Set the user configuration from an URI.

Field Details

DEFAULT_BREAK_INDENT_INHERITANCE

public static final boolean DEFAULT_BREAK_INDENT_INHERITANCE
Defines if FOP should use an alternative rule to determine text indents
Field Value:
false

DEFAULT_PAGE_HEIGHT

public static final String DEFAULT_PAGE_HEIGHT
Defines the default page-height

DEFAULT_PAGE_WIDTH

public static final String DEFAULT_PAGE_WIDTH
Defines the default page-width

DEFAULT_SOURCE_RESOLUTION

public static final float DEFAULT_SOURCE_RESOLUTION
Defines the default source resolution (72dpi) for FOP
Field Value:
72.0f

DEFAULT_STRICT_FO_VALIDATION

public static final boolean DEFAULT_STRICT_FO_VALIDATION
Defines if FOP should use strict validation for FO and user config
Field Value:
true

DEFAULT_STRICT_USERCONFIG_VALIDATION

public static final boolean DEFAULT_STRICT_USERCONFIG_VALIDATION
Defines if FOP should validate the user config strictly
Field Value:
true

DEFAULT_TARGET_RESOLUTION

public static final float DEFAULT_TARGET_RESOLUTION
Defines the default target resolution (72dpi) for FOP
Field Value:
72.0f

DEFAULT_USE_CACHE

public static final boolean DEFAULT_USE_CACHE
Use cache (record previously detected font triplet info)
Field Value:
true

Constructor Details

FopFactoryConfigurator

public FopFactoryConfigurator(FopFactory factory)
Default constructor
Parameters:
factory - fop factory

Method Details

configure

public void configure(FopFactory factory)
            throws FOPException
Initializes user agent settings from the user configuration file, if present: baseURL, resolution, default page size,...
Parameters:
factory - fop factory
Throws:
FOPException - fop exception

getUserConfig

public Configuration getUserConfig()
Get the avalon user configuration.
Returns:
the user configuration

setUserConfig

public void setUserConfig(Configuration cfg)
            throws FOPException
Set the user configuration.
Parameters:
cfg - avalon configuration
Throws:
FOPException - if a configuration problem occurs

setUserConfig

public void setUserConfig(File userConfigFile)
            throws SAXException,
                   IOException
Set the user configuration.
Parameters:
userConfigFile - the configuration file

setUserConfig

public void setUserConfig(String uri)
            throws SAXException,
                   IOException
Set the user configuration from an URI.
Parameters:
uri - the URI to the configuration file

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