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, tFactoryFILE_EXTENSION_SVG, MIME_SVG_PRINT, MIME_TYPE, NAMESPACE, SVG_ELEMENTCDATA, 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, setResultendDocumentTrailer, endPageHeader, endPageTrailer, getContext, getDocumentNavigationHandler, getStructureTreeEventHandler, getUserAgent, setContext, setDocumentLocale, startDocument, startDocumentTrailer, startPageHeader, startPageTrailerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendDocument, endPage, endPageContent, endPageSequence, getMimeType, startPage, startPageContent, startPageSequence, supportsPagesOutOfOrderprotected FontInfo fontInfo
protected IFState state
protected java.lang.String getMainNamespace()
getMainNamespace in class AbstractXMLWritingIFDocumentHandlerpublic FontInfo getFontInfo()
getFontInfo in interface IFDocumentHandlerpublic void setFontInfo(FontInfo fontInfo)
setFontInfo in interface IFDocumentHandlerfontInfo - the font info objectpublic void setDefaultFontInfo(FontInfo fontInfo)
setDefaultFontInfo in interface IFDocumentHandlerfontInfo - the font info object to populatepublic IFDocumentHandlerConfigurator getConfigurator()
getConfigurator in interface IFDocumentHandlerpublic 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 IFDocumentHandlerstartDocumentHeader in class AbstractIFDocumentHandlerIFException - if an error occurs while handling this eventpublic void endDocumentHeader()
throws IFException
endDocumentHeader in interface IFDocumentHandlerendDocumentHeader in class AbstractIFDocumentHandlerIFException - if an error occurs while handling this eventpublic void handleExtensionObject(java.lang.Object extension)
throws IFException
handleExtensionObject in interface IFDocumentHandlerextension - the extension objectIFException - if an error occurs while handling this eventCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.