org.apache.fop.svg
Class AbstractFOPTranscoder
SVGAbstractTranscoder
org.apache.fop.svg.AbstractFOPTranscoder
public abstract class AbstractFOPTranscoder
extends SVGAbstractTranscoder
This is the common base class of all of FOP's transcoders.
static TranscodingHints.Key | KEY_STROKE_TEXT - The key to specify whether to stroke text instead of using text
operations.
|
static Boolean | VALUE_FORMAT_OFF - The value to turn off text stroking.
|
static Boolean | VALUE_FORMAT_ON - The value to turn on text stroking.
|
protected UserAgent | userAgent - The user agent dedicated to this Transcoder.
|
protected DocumentFactory | createDocumentFactory(DOMImplementation domImpl, String parserClassname) - Creates a DocumentFactory that is used to create an SVG DOM
tree.
|
protected UserAgent | createUserAgent() - Creates and returns the default user agent for this transcoder.
|
protected Log | getLogger() - Returns the logger associated with this transcoder.
|
void | setEntityResolver(EntityResolver resolver) - Sets the EntityResolver that should be used when building SVG documents.
|
void | setLogger(Log logger)
|
KEY_STROKE_TEXT
public static final TranscodingHints.Key KEY_STROKE_TEXT
The key to specify whether to stroke text instead of using text
operations.
VALUE_FORMAT_OFF
public static final Boolean VALUE_FORMAT_OFF
The value to turn off text stroking.
VALUE_FORMAT_ON
public static final Boolean VALUE_FORMAT_ON
The value to turn on text stroking.
userAgent
protected UserAgent userAgent
The user agent dedicated to this Transcoder.
AbstractFOPTranscoder
public AbstractFOPTranscoder()
Constructs a new FOP-style transcoder.
createDocumentFactory
protected DocumentFactory createDocumentFactory(DOMImplementation domImpl,
String parserClassname)
Creates a DocumentFactory that is used to create an SVG DOM
tree. The specified DOM Implementation is ignored and the Batik
SVG DOM Implementation is automatically used.
domImpl
- the DOM Implementation (not used)parserClassname
- the XML parser classname
createUserAgent
protected UserAgent createUserAgent()
Creates and returns the default user agent for this transcoder. Override
this method if you need non-default behaviour.
- UserAgent the newly created user agent
getLogger
protected final Log getLogger()
Returns the logger associated with this transcoder. It returns a
SimpleLog if no logger has been explicitly set.
- Logger the logger for the transcoder.
setEntityResolver
public void setEntityResolver(EntityResolver resolver)
Sets the EntityResolver that should be used when building SVG documents.
setLogger
public void setLogger(Log logger)
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.