public abstract class AbstractSVGDocumentHandler extends AbstractXMLWritingIFDocumentHandler implements SVGConstants
Modifier and Type | Field and Description |
---|---|
protected FontInfo |
fontInfo
Font configuration
|
protected IFState |
state
Holds the intermediate format state
|
handler, tFactory
FILE_EXTENSION_SVG, MIME_SVG_PRINT, MIME_TYPE, NAMESPACE, SVG_ELEMENT
CDATA, XLINK_HREF, XLINK_NAMESPACE, XLINK_PREFIX, XML_NAMESPACE, XML_PREFIX, XML_SPACE, XMLNS_NAMESPACE_URI, XMLNS_PREFIX
Constructor and Description |
---|
AbstractSVGDocumentHandler() |
Modifier and Type | Method and Description |
---|---|
void |
endDocumentHeader()
Indicates the end of the document header.
|
IFDocumentHandlerConfigurator |
getConfigurator()
Returns the configurator for this document handler, if any.
|
FontInfo |
getFontInfo()
Returns the font set to work with.
|
protected java.lang.String |
getMainNamespace()
Returns the main namespace used for generated XML content.
|
void |
handleExtensionObject(java.lang.Object extension)
Handles an extension object.
|
void |
setDefaultFontInfo(FontInfo fontInfo)
Sets the default font set (with no custom configuration).
|
void |
setFontInfo(FontInfo fontInfo)
Sets the font set to work with.
|
void |
startDocumentHeader()
Indicates the start of the document header.
|
createContentHandler, setResult
endDocumentTrailer, endPageHeader, endPageTrailer, getContext, getDocumentNavigationHandler, getUserAgent, setContext, startDocument, startDocumentTrailer, startPageHeader, startPageTrailer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endDocument, endPage, endPageContent, endPageSequence, getMimeType, startPage, startPageContent, startPageSequence, supportsPagesOutOfOrder
protected FontInfo fontInfo
protected IFState state
protected java.lang.String getMainNamespace()
getMainNamespace
in class AbstractXMLWritingIFDocumentHandler
public FontInfo getFontInfo()
getFontInfo
in interface IFDocumentHandler
public void setFontInfo(FontInfo fontInfo)
setFontInfo
in interface IFDocumentHandler
fontInfo
- the font info objectpublic void setDefaultFontInfo(FontInfo fontInfo)
setDefaultFontInfo
in interface IFDocumentHandler
fontInfo
- the font info object to populatepublic IFDocumentHandlerConfigurator getConfigurator()
getConfigurator
in interface IFDocumentHandler
public void startDocumentHeader() throws IFException
IFDocumentHandler.startDocument()
method. Extensions sent to this painter between
IFDocumentHandler.startDocumentHeader()
and IFDocumentHandler.endDocumentHeader()
apply to the document as
a whole (like document metadata).startDocumentHeader
in interface IFDocumentHandler
startDocumentHeader
in class AbstractIFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void endDocumentHeader() throws IFException
endDocumentHeader
in interface IFDocumentHandler
endDocumentHeader
in class AbstractIFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void handleExtensionObject(java.lang.Object extension) throws IFException
handleExtensionObject
in interface IFDocumentHandler
extension
- the extension objectIFException
- if an error occurs while handling this eventCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.