Package org.apache.batik.anim.dom
Class SVGDOMImplementation
- java.lang.Object
-
- org.apache.batik.dom.AbstractDOMImplementation
-
- org.apache.batik.dom.ExtensibleDOMImplementation
-
- org.apache.batik.anim.dom.SVGDOMImplementation
-
- All Implemented Interfaces:
java.io.Serializable,StyleSheetFactory,CSSStyleDeclarationFactory,Localizable,org.w3c.dom.css.DOMImplementationCSS,org.w3c.dom.DOMImplementation
- Direct Known Subclasses:
SVG12DOMImplementation
public class SVGDOMImplementation extends ExtensibleDOMImplementation implements CSSStyleDeclarationFactory
This class implements theDOMImplementationinterface. It provides support the SVG 1.1 documents.- Version:
- $Id: SVGDOMImplementation.java 1831630 2018-05-15 12:56:55Z ssteiner $
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSVGDOMImplementation.AElementFactoryTo create a 'a' element.protected static classSVGDOMImplementation.AltGlyphDefElementFactoryTo create a 'altGlyphDef' element.protected static classSVGDOMImplementation.AltGlyphElementFactoryTo create a 'altGlyph' element.protected static classSVGDOMImplementation.AltGlyphItemElementFactoryTo create a 'altGlyphItem' element.protected static classSVGDOMImplementation.AnimateColorElementFactoryTo create a 'animateColor' element.protected static classSVGDOMImplementation.AnimateElementFactoryTo create a 'animate' element.protected static classSVGDOMImplementation.AnimateMotionElementFactoryTo create a 'animateMotion' element.protected static classSVGDOMImplementation.AnimateTransformElementFactoryTo create a 'animateTransform' element.protected static classSVGDOMImplementation.CircleElementFactoryTo create a 'circle' element.protected static classSVGDOMImplementation.ClipPathElementFactoryTo create a 'clip-path' element.protected static classSVGDOMImplementation.ColorProfileElementFactoryTo create a 'color-profile' element.protected static classSVGDOMImplementation.CursorElementFactoryTo create a 'cursor' element.protected static classSVGDOMImplementation.DefinitionSrcElementFactoryTo create a 'definition-src' element.protected static classSVGDOMImplementation.DefsElementFactoryTo create a 'defs' element.protected static classSVGDOMImplementation.DescElementFactoryTo create a 'desc' element.protected static classSVGDOMImplementation.EllipseElementFactoryTo create an 'ellipse' element.protected static classSVGDOMImplementation.FeBlendElementFactoryTo create a 'feBlend' element.protected static classSVGDOMImplementation.FeColorMatrixElementFactoryTo create a 'feColorMatrix' element.protected static classSVGDOMImplementation.FeComponentTransferElementFactoryTo create a 'feComponentTransfer' element.protected static classSVGDOMImplementation.FeCompositeElementFactoryTo create a 'feComposite' element.protected static classSVGDOMImplementation.FeConvolveMatrixElementFactoryTo create a 'feConvolveMatrix' element.protected static classSVGDOMImplementation.FeDiffuseLightingElementFactoryTo create a 'feDiffuseLighting' element.protected static classSVGDOMImplementation.FeDisplacementMapElementFactoryTo create a 'feDisplacementMap' element.protected static classSVGDOMImplementation.FeDistantLightElementFactoryTo create a 'feDistantLight' element.protected static classSVGDOMImplementation.FeFloodElementFactoryTo create a 'feFlood' element.protected static classSVGDOMImplementation.FeFuncAElementFactoryTo create a 'feFuncA' element.protected static classSVGDOMImplementation.FeFuncBElementFactoryTo create a 'feFuncB' element.protected static classSVGDOMImplementation.FeFuncGElementFactoryTo create a 'feFuncG' element.protected static classSVGDOMImplementation.FeFuncRElementFactoryTo create a 'feFuncR' element.protected static classSVGDOMImplementation.FeGaussianBlurElementFactoryTo create a 'feGaussianBlur' element.protected static classSVGDOMImplementation.FeImageElementFactoryTo create a 'feImage' element.protected static classSVGDOMImplementation.FeMergeElementFactoryTo create a 'feMerge' element.protected static classSVGDOMImplementation.FeMergeNodeElementFactoryTo create a 'feMergeNode' element.protected static classSVGDOMImplementation.FeMorphologyElementFactoryTo create a 'feMorphology' element.protected static classSVGDOMImplementation.FeOffsetElementFactoryTo create a 'feOffset' element.protected static classSVGDOMImplementation.FePointLightElementFactoryTo create a 'fePointLight' element.protected static classSVGDOMImplementation.FeSpecularLightingElementFactoryTo create a 'feSpecularLighting' element.protected static classSVGDOMImplementation.FeSpotLightElementFactoryTo create a 'feSpotLight' element.protected static classSVGDOMImplementation.FeTileElementFactoryTo create a 'feTile' element.protected static classSVGDOMImplementation.FeTurbulenceElementFactoryTo create a 'feTurbulence' elementprotected static classSVGDOMImplementation.FilterElementFactoryTo create a 'filter' element.protected static classSVGDOMImplementation.FontElementFactoryTo create a 'font' element.protected static classSVGDOMImplementation.FontFaceElementFactoryTo create a 'font-face' element.protected static classSVGDOMImplementation.FontFaceFormatElementFactoryTo create a 'font-face-format' element.protected static classSVGDOMImplementation.FontFaceNameElementFactoryTo create a 'font-face-name' element.protected static classSVGDOMImplementation.FontFaceSrcElementFactoryTo create a 'font-face-src' element.protected static classSVGDOMImplementation.FontFaceUriElementFactoryTo create a 'font-face-uri' element.protected static classSVGDOMImplementation.ForeignObjectElementFactoryTo create a 'foreignObject' element.protected static classSVGDOMImplementation.GElementFactoryTo create a 'g' element.protected static classSVGDOMImplementation.GlyphElementFactoryTo create a 'glyph' element.protected static classSVGDOMImplementation.GlyphRefElementFactoryTo create a 'glyphRef' element.protected static classSVGDOMImplementation.HkernElementFactoryTo create a 'hkern' element.protected static classSVGDOMImplementation.ImageElementFactoryTo create a 'image' element.protected static classSVGDOMImplementation.LinearGradientElementFactoryTo create a 'linearGradient' element.protected static classSVGDOMImplementation.LineElementFactoryTo create a 'line' element.protected static classSVGDOMImplementation.MarkerElementFactoryTo create a 'marker' element.protected static classSVGDOMImplementation.MaskElementFactoryTo create a 'mask' element.protected static classSVGDOMImplementation.MetadataElementFactoryTo create a 'metadata' element.protected static classSVGDOMImplementation.MissingGlyphElementFactoryTo create a 'missing-glyph' element.protected static classSVGDOMImplementation.MpathElementFactoryTo create a 'mpath' element.protected static classSVGDOMImplementation.PathElementFactoryTo create a 'path' element.protected static classSVGDOMImplementation.PatternElementFactoryTo create a 'pattern' element.protected static classSVGDOMImplementation.PolygonElementFactoryTo create a 'polygon' element.protected static classSVGDOMImplementation.PolylineElementFactoryTo create a 'polyline' element.protected static classSVGDOMImplementation.RadialGradientElementFactoryTo create a 'radialGradient' element.protected static classSVGDOMImplementation.RectElementFactoryTo create a 'rect' element.protected static classSVGDOMImplementation.ScriptElementFactoryTo create a 'script' element.protected static classSVGDOMImplementation.SetElementFactoryTo create a 'set' element.protected static classSVGDOMImplementation.StopElementFactoryTo create a 'stop' element.protected static classSVGDOMImplementation.StyleElementFactoryTo create a 'style' element.protected static classSVGDOMImplementation.SvgElementFactoryTo create an 'svg' element.protected static classSVGDOMImplementation.SwitchElementFactoryTo create a 'switch' element.protected static classSVGDOMImplementation.SymbolElementFactoryTo create a 'symbol' element.protected static classSVGDOMImplementation.TextElementFactoryTo create a 'text' element.protected static classSVGDOMImplementation.TextPathElementFactoryTo create a 'textPath' element.protected static classSVGDOMImplementation.TitleElementFactoryTo create a 'title' element.protected static classSVGDOMImplementation.TrefElementFactoryTo create a 'tref' element.protected static classSVGDOMImplementation.TspanElementFactoryTo create a 'tspan' element.protected static classSVGDOMImplementation.UseElementFactoryTo create a 'use' element.protected static classSVGDOMImplementation.ViewElementFactoryTo create a 'view' element.protected static classSVGDOMImplementation.VkernElementFactoryTo create a 'vkern' element.-
Nested classes/interfaces inherited from class org.apache.batik.dom.ExtensibleDOMImplementation
ExtensibleDOMImplementation.ElementFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.w3c.dom.DOMImplementationDOM_IMPLEMENTATIONThe default instance of this class.protected java.util.HashMap<java.lang.String,ExtensibleDOMImplementation.ElementFactory>factoriesprotected static java.lang.StringRESOURCESThe error messages bundle class name.static java.lang.StringSVG_NAMESPACE_URIThe SVG namespace uri.protected static java.util.HashMap<java.lang.String,ExtensibleDOMImplementation.ElementFactory>svg11FactoriesThe SVG element factories.-
Fields inherited from class org.apache.batik.dom.ExtensibleDOMImplementation
customFactories, customShorthandManagers, customValueManagers, extensions
-
Fields inherited from class org.apache.batik.dom.AbstractDOMImplementation
features, localizableSupport
-
-
Constructor Summary
Constructors Constructor Description SVGDOMImplementation()Creates a new SVGDOMImplementation object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CSSEnginecreateCSSEngine(AbstractStylableDocument doc, CSSContext ctx, ExtendedParser ep, ValueManager[] vms, ShorthandManager[] sms)org.w3c.dom.css.CSSStyleDeclarationcreateCSSStyleDeclaration()Creates a style declaration.org.w3c.dom.css.CSSStyleSheetcreateCSSStyleSheet(java.lang.String title, java.lang.String media)DOM: ImplementsDOMImplementationCSS.createCSSStyleSheet(String,String).org.w3c.dom.DocumentcreateDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, org.w3c.dom.DocumentType doctype)DOM: ImplementsDOMImplementation.createDocument(String,String,DocumentType).DocumentEventSupportcreateDocumentEventSupport()Creates an DocumentEventSupport object suitable for use with this implementation.org.w3c.dom.ElementcreateElementNS(AbstractDocument document, java.lang.String namespaceURI, java.lang.String qualifiedName)Implements the behavior of Document.createElementNS() for this DOM implementation.org.w3c.dom.stylesheets.StyleSheetcreateStyleSheet(org.w3c.dom.Node n, java.util.HashMap<java.lang.String,java.lang.String> attrs)Creates a stylesheet from the data of an xml-stylesheet processing instruction or return null.org.w3c.dom.css.ViewCSScreateViewCSS(AbstractStylableDocument doc)Creates a ViewCSS.static org.w3c.dom.DOMImplementationgetDOMImplementation()Returns the default instance of this class.org.w3c.dom.css.CSSStyleSheetgetUserAgentStyleSheet()Returns the user-agent stylesheet.protected voidinitLocalizable()-
Methods inherited from class org.apache.batik.dom.ExtensibleDOMImplementation
createCSSEngine, createDocumentType, getDomExtensions, registerCustomCSSShorthandManager, registerCustomCSSValueManager, registerCustomElementFactory
-
Methods inherited from class org.apache.batik.dom.AbstractDOMImplementation
createEventSupport, formatMessage, getFeature, getLocale, hasFeature, registerFeature, setLocale
-
-
-
-
Field Detail
-
SVG_NAMESPACE_URI
public static final java.lang.String SVG_NAMESPACE_URI
The SVG namespace uri.- See Also:
- Constant Field Values
-
RESOURCES
protected static final java.lang.String RESOURCES
The error messages bundle class name.- See Also:
- Constant Field Values
-
factories
protected java.util.HashMap<java.lang.String,ExtensibleDOMImplementation.ElementFactory> factories
-
svg11Factories
protected static java.util.HashMap<java.lang.String,ExtensibleDOMImplementation.ElementFactory> svg11Factories
The SVG element factories.
-
DOM_IMPLEMENTATION
protected static final org.w3c.dom.DOMImplementation DOM_IMPLEMENTATION
The default instance of this class.
-
-
Method Detail
-
getDOMImplementation
public static org.w3c.dom.DOMImplementation 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
public org.w3c.dom.css.ViewCSS createViewCSS(AbstractStylableDocument doc)
Creates a ViewCSS.- Specified by:
createViewCSSin classExtensibleDOMImplementation
-
createDocument
public org.w3c.dom.Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, org.w3c.dom.DocumentType doctype) throws org.w3c.dom.DOMExceptionDOM: ImplementsDOMImplementation.createDocument(String,String,DocumentType).- Specified by:
createDocumentin interfaceorg.w3c.dom.DOMImplementation- Throws:
org.w3c.dom.DOMException
-
createCSSStyleSheet
public org.w3c.dom.css.CSSStyleSheet createCSSStyleSheet(java.lang.String title, java.lang.String media)DOM: ImplementsDOMImplementationCSS.createCSSStyleSheet(String,String).- Specified by:
createCSSStyleSheetin interfaceorg.w3c.dom.css.DOMImplementationCSS
-
createCSSStyleDeclaration
public org.w3c.dom.css.CSSStyleDeclaration createCSSStyleDeclaration()
Creates a style declaration.- Specified by:
createCSSStyleDeclarationin interfaceCSSStyleDeclarationFactory- Returns:
- a CSSOMStyleDeclaration instance.
-
createStyleSheet
public org.w3c.dom.stylesheets.StyleSheet createStyleSheet(org.w3c.dom.Node n, java.util.HashMap<java.lang.String,java.lang.String> attrs)Creates a stylesheet from the data of an xml-stylesheet processing instruction or return null.- Specified by:
createStyleSheetin interfaceStyleSheetFactory
-
getUserAgentStyleSheet
public org.w3c.dom.css.CSSStyleSheet getUserAgentStyleSheet()
Returns the user-agent stylesheet.
-
createElementNS
public org.w3c.dom.Element createElementNS(AbstractDocument document, java.lang.String namespaceURI, java.lang.String qualifiedName)
Implements the behavior of Document.createElementNS() for this DOM implementation.- Overrides:
createElementNSin classExtensibleDOMImplementation
-
createDocumentEventSupport
public DocumentEventSupport createDocumentEventSupport()
Creates an DocumentEventSupport object suitable for use with this implementation.- Overrides:
createDocumentEventSupportin classAbstractDOMImplementation
-
-