This is the user agent for FOP.
It is the entity through which you can interact with the XSL-FO processing and is
used by the processing to obtain user configurable options.
Renderer specific extensions (that do not produce normal areas on
the output) will be done like so:
The extension will create an area, custom if necessary
this area will be added to the user agent with a key
the renderer will know keys for particular extensions
eg. bookmarks will be held in a special hierarchical area representing
the title and bookmark structure
These areas may contain resolvable areas that will be processed
with other resolvable areas
resolveURI(String uri) Attempts to resolve the given URI.
Will use the configured resolver and if not successful fall back
to the default resolver.
Parameters: uri - URI to access A javax.xml.transform.Source object, or null if the URIcannot be resolved.
resolveURI(String href, String base) Attempts to resolve the given URI.
Will use the configured resolver and if not successful fall back
to the default resolver.
Parameters: href - URI to access Parameters: base - the base URI to resolve against A javax.xml.transform.Source object, or null if the URIcannot be resolved.
Main constructor. This constructor should not be called directly. Please use the
methods from FopFactory to construct FOUserAgent instances! Parameters: factory - the factory that provides environment-level information See Also:org.apache.fop.apps.FopFactory
Returns the overriding Renderer instance, if any.
the overriding Renderer or null
getSourcePixelUnitToMillimeter
public float getSourcePixelUnitToMillimeter()(Code)
Returns the conversion factor from pixel units to millimeters. This
depends on the desired source resolution.
float conversion factor See Also:FOUserAgent.getSourceResolution()
public float getTargetPixelUnitToMillimeter()(Code)
Returns the conversion factor from pixel units to millimeters. This
depends on the desired target resolution.
float conversion factor See Also:FOUserAgent.getTargetResolution()
Attempts to resolve the given URI.
Will use the configured resolver and if not successful fall back
to the default resolver.
Parameters: uri - URI to access A javax.xml.transform.Source object, or null if the URIcannot be resolved. See Also:org.apache.fop.apps.FOURIResolver
Attempts to resolve the given URI.
Will use the configured resolver and if not successful fall back
to the default resolver.
Parameters: href - URI to access Parameters: base - the base URI to resolve against A javax.xml.transform.Source object, or null if the URIcannot be resolved. See Also:org.apache.fop.apps.FOURIResolver
Sets the keywords for the document.
Parameters: keywords - for the document
setLocatorEnabled
public void setLocatorEnabled(boolean enableLocator)(Code)
Controls the use of SAXLocators to provide location information in error
messages.
Parameters: enableLocator - false if SAX Locators should be disabled true if context information should be stored on each node in the FO tree.
Sets the target resolution in dpi. This value defines the target resolution of
bitmap images generated by the bitmap renderers (such as the TIFF renderer) and of
bitmap images generated by filter effects in Apache Batik.
Parameters: dpi - resolution in dpi
Sets the target resolution in dpi. This value defines the target resolution of
bitmap images generated by the bitmap renderers (such as the TIFF renderer) and of
bitmap images generated by filter effects in Apache Batik.
Parameters: dpi - resolution in dpi