Class SVGDOMImplementation
java.lang.Object
org.apache.batik.dom.AbstractDOMImplementation
org.apache.batik.dom.ExtensibleDOMImplementation
org.apache.batik.anim.dom.SVGDOMImplementation
- All Implemented Interfaces:
Serializable, StyleSheetFactory, CSSStyleDeclarationFactory, Localizable, DOMImplementationCSS, DOMImplementation
- Direct Known Subclasses:
SVG12DOMImplementation
public class SVGDOMImplementation
extends ExtensibleDOMImplementation
implements CSSStyleDeclarationFactory
This class implements the
DOMImplementation interface.
It provides support the SVG 1.1 documents.- Version:
- $Id$
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classTo create a 'a' element.protected static classTo create a 'altGlyphDef' element.protected static classTo create a 'altGlyph' element.protected static classTo create a 'altGlyphItem' element.protected static classTo create a 'animateColor' element.protected static classTo create a 'animate' element.protected static classTo create a 'animateMotion' element.protected static classTo create a 'animateTransform' element.protected static classTo create a 'circle' element.protected static classTo create a 'clip-path' element.protected static classTo create a 'color-profile' element.protected static classTo create a 'cursor' element.protected static classTo create a 'definition-src' element.protected static classTo create a 'defs' element.protected static classTo create a 'desc' element.protected static classTo create an 'ellipse' element.protected static classTo create a 'feBlend' element.protected static classTo create a 'feColorMatrix' element.protected static classTo create a 'feComponentTransfer' element.protected static classTo create a 'feComposite' element.protected static classTo create a 'feConvolveMatrix' element.protected static classTo create a 'feDiffuseLighting' element.protected static classTo create a 'feDisplacementMap' element.protected static classTo create a 'feDistantLight' element.protected static classTo create a 'feFlood' element.protected static classTo create a 'feFuncA' element.protected static classTo create a 'feFuncB' element.protected static classTo create a 'feFuncG' element.protected static classTo create a 'feFuncR' element.protected static classTo create a 'feGaussianBlur' element.protected static classTo create a 'feImage' element.protected static classTo create a 'feMerge' element.protected static classTo create a 'feMergeNode' element.protected static classTo create a 'feMorphology' element.protected static classTo create a 'feOffset' element.protected static classTo create a 'fePointLight' element.protected static classTo create a 'feSpecularLighting' element.protected static classTo create a 'feSpotLight' element.protected static classTo create a 'feTile' element.protected static classTo create a 'feTurbulence' elementprotected static classTo create a 'filter' element.protected static classTo create a 'font' element.protected static classTo create a 'font-face' element.protected static classTo create a 'font-face-format' element.protected static classTo create a 'font-face-name' element.protected static classTo create a 'font-face-src' element.protected static classTo create a 'font-face-uri' element.protected static classTo create a 'foreignObject' element.protected static classTo create a 'g' element.protected static classTo create a 'glyph' element.protected static classTo create a 'glyphRef' element.protected static classTo create a 'hkern' element.protected static classTo create a 'image' element.protected static classTo create a 'linearGradient' element.protected static classTo create a 'line' element.protected static classTo create a 'marker' element.protected static classTo create a 'mask' element.protected static classTo create a 'metadata' element.protected static classTo create a 'missing-glyph' element.protected static classTo create a 'mpath' element.protected static classTo create a 'path' element.protected static classTo create a 'pattern' element.protected static classTo create a 'polygon' element.protected static classTo create a 'polyline' element.protected static classTo create a 'radialGradient' element.protected static classTo create a 'rect' element.protected static classTo create a 'script' element.protected static classTo create a 'set' element.protected static classTo create a 'stop' element.protected static classTo create a 'style' element.protected static classTo create an 'svg' element.protected static classTo create a 'switch' element.protected static classTo create a 'symbol' element.protected static classTo create a 'text' element.protected static classTo create a 'textPath' element.protected static classTo create a 'title' element.protected static classTo create a 'tref' element.protected static classTo create a 'tspan' element.protected static classTo create a 'use' element.protected static classTo create a 'view' element.protected static classTo create a 'vkern' element.Nested classes/interfaces inherited from class ExtensibleDOMImplementation
ExtensibleDOMImplementation.ElementFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final DOMImplementationThe default instance of this class.protected HashMap<String, ExtensibleDOMImplementation.ElementFactory> protected static final StringThe error messages bundle class name.static final StringThe SVG namespace uri.protected static HashMap<String, ExtensibleDOMImplementation.ElementFactory> The SVG element factories.Fields inherited from class ExtensibleDOMImplementation
customFactories, customShorthandManagers, customValueManagers, extensionsFields inherited from class AbstractDOMImplementation
features, localizableSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCSSEngine(AbstractStylableDocument doc, CSSContext ctx, ExtendedParser ep, ValueManager[] vms, ShorthandManager[] sms) Creates a style declaration.createCSSStyleSheet(String title, String media) DOM: ImplementsDOMImplementationCSS.createCSSStyleSheet(String,String).createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) DOM: ImplementsDOMImplementation.createDocument(String,String,DocumentType).Creates an DocumentEventSupport object suitable for use with this implementation.createElementNS(AbstractDocument document, String namespaceURI, String qualifiedName) Implements the behavior of Document.createElementNS() for this DOM implementation.createStyleSheet(Node n, HashMap<String, String> attrs) Creates a stylesheet from the data of an xml-stylesheet processing instruction or return null.Creates a ViewCSS.static DOMImplementationReturns the default instance of this class.Returns the user-agent stylesheet.protected voidMethods inherited from class ExtensibleDOMImplementation
createCSSEngine, createDocumentType, getDomExtensions, registerCustomCSSShorthandManager, registerCustomCSSValueManager, registerCustomElementFactoryMethods inherited from class AbstractDOMImplementation
createEventSupport, formatMessage, getFeature, getLocale, hasFeature, registerFeature, setLocaleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DOMImplementation
getFeature, hasFeature
-
Field Details
-
SVG_NAMESPACE_URI
-
RESOURCES
-
factories
-
svg11Factories
The SVG element factories. -
DOM_IMPLEMENTATION
The default instance of this class.
-
-
Constructor Details
-
SVGDOMImplementation
public SVGDOMImplementation()Creates a new SVGDOMImplementation object.
-
-
Method Details
-
getDOMImplementation
Returns the default instance of this class. -
initLocalizable
protected void initLocalizable()- Overrides:
initLocalizablein classAbstractDOMImplementation
-
createCSSEngine
public CSSEngine createCSSEngine(AbstractStylableDocument doc, CSSContext ctx, ExtendedParser ep, ValueManager[] vms, ShorthandManager[] sms) - Specified by:
createCSSEnginein classExtensibleDOMImplementation
-
createViewCSS
Creates a ViewCSS.- Specified by:
createViewCSSin classExtensibleDOMImplementation
-
createDocument
public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException DOM: ImplementsDOMImplementation.createDocument(String,String,DocumentType).- Specified by:
createDocumentin interfaceDOMImplementation- Throws:
DOMException
-
createCSSStyleSheet
DOM: ImplementsDOMImplementationCSS.createCSSStyleSheet(String,String).- Specified by:
createCSSStyleSheetin interfaceDOMImplementationCSS
-
createCSSStyleDeclaration
Creates a style declaration.- Specified by:
createCSSStyleDeclarationin interfaceCSSStyleDeclarationFactory- Returns:
- a CSSOMStyleDeclaration instance.
-
createStyleSheet
Creates a stylesheet from the data of an xml-stylesheet processing instruction or return null.- Specified by:
createStyleSheetin interfaceStyleSheetFactory
-
getUserAgentStyleSheet
Returns the user-agent stylesheet. -
createElementNS
public Element createElementNS(AbstractDocument document, String namespaceURI, String qualifiedName) Implements the behavior of Document.createElementNS() for this DOM implementation.- Overrides:
createElementNSin classExtensibleDOMImplementation
-
createDocumentEventSupport
Creates an DocumentEventSupport object suitable for use with this implementation.- Overrides:
createDocumentEventSupportin classAbstractDOMImplementation
-