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 theDOMImplementation
interface. It provides support the SVG 1.1 documents.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SVGDOMImplementation.AElementFactory
To create a 'a' element.protected static class
SVGDOMImplementation.AltGlyphDefElementFactory
To create a 'altGlyphDef' element.protected static class
SVGDOMImplementation.AltGlyphElementFactory
To create a 'altGlyph' element.protected static class
SVGDOMImplementation.AltGlyphItemElementFactory
To create a 'altGlyphItem' element.protected static class
SVGDOMImplementation.AnimateColorElementFactory
To create a 'animateColor' element.protected static class
SVGDOMImplementation.AnimateElementFactory
To create a 'animate' element.protected static class
SVGDOMImplementation.AnimateMotionElementFactory
To create a 'animateMotion' element.protected static class
SVGDOMImplementation.AnimateTransformElementFactory
To create a 'animateTransform' element.protected static class
SVGDOMImplementation.CircleElementFactory
To create a 'circle' element.protected static class
SVGDOMImplementation.ClipPathElementFactory
To create a 'clip-path' element.protected static class
SVGDOMImplementation.ColorProfileElementFactory
To create a 'color-profile' element.protected static class
SVGDOMImplementation.CursorElementFactory
To create a 'cursor' element.protected static class
SVGDOMImplementation.DefinitionSrcElementFactory
To create a 'definition-src' element.protected static class
SVGDOMImplementation.DefsElementFactory
To create a 'defs' element.protected static class
SVGDOMImplementation.DescElementFactory
To create a 'desc' element.protected static class
SVGDOMImplementation.EllipseElementFactory
To create an 'ellipse' element.protected static class
SVGDOMImplementation.FeBlendElementFactory
To create a 'feBlend' element.protected static class
SVGDOMImplementation.FeColorMatrixElementFactory
To create a 'feColorMatrix' element.protected static class
SVGDOMImplementation.FeComponentTransferElementFactory
To create a 'feComponentTransfer' element.protected static class
SVGDOMImplementation.FeCompositeElementFactory
To create a 'feComposite' element.protected static class
SVGDOMImplementation.FeConvolveMatrixElementFactory
To create a 'feConvolveMatrix' element.protected static class
SVGDOMImplementation.FeDiffuseLightingElementFactory
To create a 'feDiffuseLighting' element.protected static class
SVGDOMImplementation.FeDisplacementMapElementFactory
To create a 'feDisplacementMap' element.protected static class
SVGDOMImplementation.FeDistantLightElementFactory
To create a 'feDistantLight' element.protected static class
SVGDOMImplementation.FeFloodElementFactory
To create a 'feFlood' element.protected static class
SVGDOMImplementation.FeFuncAElementFactory
To create a 'feFuncA' element.protected static class
SVGDOMImplementation.FeFuncBElementFactory
To create a 'feFuncB' element.protected static class
SVGDOMImplementation.FeFuncGElementFactory
To create a 'feFuncG' element.protected static class
SVGDOMImplementation.FeFuncRElementFactory
To create a 'feFuncR' element.protected static class
SVGDOMImplementation.FeGaussianBlurElementFactory
To create a 'feGaussianBlur' element.protected static class
SVGDOMImplementation.FeImageElementFactory
To create a 'feImage' element.protected static class
SVGDOMImplementation.FeMergeElementFactory
To create a 'feMerge' element.protected static class
SVGDOMImplementation.FeMergeNodeElementFactory
To create a 'feMergeNode' element.protected static class
SVGDOMImplementation.FeMorphologyElementFactory
To create a 'feMorphology' element.protected static class
SVGDOMImplementation.FeOffsetElementFactory
To create a 'feOffset' element.protected static class
SVGDOMImplementation.FePointLightElementFactory
To create a 'fePointLight' element.protected static class
SVGDOMImplementation.FeSpecularLightingElementFactory
To create a 'feSpecularLighting' element.protected static class
SVGDOMImplementation.FeSpotLightElementFactory
To create a 'feSpotLight' element.protected static class
SVGDOMImplementation.FeTileElementFactory
To create a 'feTile' element.protected static class
SVGDOMImplementation.FeTurbulenceElementFactory
To create a 'feTurbulence' elementprotected static class
SVGDOMImplementation.FilterElementFactory
To create a 'filter' element.protected static class
SVGDOMImplementation.FontElementFactory
To create a 'font' element.protected static class
SVGDOMImplementation.FontFaceElementFactory
To create a 'font-face' element.protected static class
SVGDOMImplementation.FontFaceFormatElementFactory
To create a 'font-face-format' element.protected static class
SVGDOMImplementation.FontFaceNameElementFactory
To create a 'font-face-name' element.protected static class
SVGDOMImplementation.FontFaceSrcElementFactory
To create a 'font-face-src' element.protected static class
SVGDOMImplementation.FontFaceUriElementFactory
To create a 'font-face-uri' element.protected static class
SVGDOMImplementation.ForeignObjectElementFactory
To create a 'foreignObject' element.protected static class
SVGDOMImplementation.GElementFactory
To create a 'g' element.protected static class
SVGDOMImplementation.GlyphElementFactory
To create a 'glyph' element.protected static class
SVGDOMImplementation.GlyphRefElementFactory
To create a 'glyphRef' element.protected static class
SVGDOMImplementation.HkernElementFactory
To create a 'hkern' element.protected static class
SVGDOMImplementation.ImageElementFactory
To create a 'image' element.protected static class
SVGDOMImplementation.LinearGradientElementFactory
To create a 'linearGradient' element.protected static class
SVGDOMImplementation.LineElementFactory
To create a 'line' element.protected static class
SVGDOMImplementation.MarkerElementFactory
To create a 'marker' element.protected static class
SVGDOMImplementation.MaskElementFactory
To create a 'mask' element.protected static class
SVGDOMImplementation.MetadataElementFactory
To create a 'metadata' element.protected static class
SVGDOMImplementation.MissingGlyphElementFactory
To create a 'missing-glyph' element.protected static class
SVGDOMImplementation.MpathElementFactory
To create a 'mpath' element.protected static class
SVGDOMImplementation.PathElementFactory
To create a 'path' element.protected static class
SVGDOMImplementation.PatternElementFactory
To create a 'pattern' element.protected static class
SVGDOMImplementation.PolygonElementFactory
To create a 'polygon' element.protected static class
SVGDOMImplementation.PolylineElementFactory
To create a 'polyline' element.protected static class
SVGDOMImplementation.RadialGradientElementFactory
To create a 'radialGradient' element.protected static class
SVGDOMImplementation.RectElementFactory
To create a 'rect' element.protected static class
SVGDOMImplementation.ScriptElementFactory
To create a 'script' element.protected static class
SVGDOMImplementation.SetElementFactory
To create a 'set' element.protected static class
SVGDOMImplementation.StopElementFactory
To create a 'stop' element.protected static class
SVGDOMImplementation.StyleElementFactory
To create a 'style' element.protected static class
SVGDOMImplementation.SvgElementFactory
To create an 'svg' element.protected static class
SVGDOMImplementation.SwitchElementFactory
To create a 'switch' element.protected static class
SVGDOMImplementation.SymbolElementFactory
To create a 'symbol' element.protected static class
SVGDOMImplementation.TextElementFactory
To create a 'text' element.protected static class
SVGDOMImplementation.TextPathElementFactory
To create a 'textPath' element.protected static class
SVGDOMImplementation.TitleElementFactory
To create a 'title' element.protected static class
SVGDOMImplementation.TrefElementFactory
To create a 'tref' element.protected static class
SVGDOMImplementation.TspanElementFactory
To create a 'tspan' element.protected static class
SVGDOMImplementation.UseElementFactory
To create a 'use' element.protected static class
SVGDOMImplementation.ViewElementFactory
To create a 'view' element.protected static class
SVGDOMImplementation.VkernElementFactory
To 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.DOMImplementation
DOM_IMPLEMENTATION
The default instance of this class.protected java.util.HashMap<java.lang.String,ExtensibleDOMImplementation.ElementFactory>
factories
protected static java.lang.String
RESOURCES
The error messages bundle class name.static java.lang.String
SVG_NAMESPACE_URI
The SVG namespace uri.protected static java.util.HashMap<java.lang.String,ExtensibleDOMImplementation.ElementFactory>
svg11Factories
The 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 CSSEngine
createCSSEngine(AbstractStylableDocument doc, CSSContext ctx, ExtendedParser ep, ValueManager[] vms, ShorthandManager[] sms)
org.w3c.dom.css.CSSStyleDeclaration
createCSSStyleDeclaration()
Creates a style declaration.org.w3c.dom.css.CSSStyleSheet
createCSSStyleSheet(java.lang.String title, java.lang.String media)
DOM: ImplementsDOMImplementationCSS.createCSSStyleSheet(String,String)
.org.w3c.dom.Document
createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, org.w3c.dom.DocumentType doctype)
DOM: ImplementsDOMImplementation.createDocument(String,String,DocumentType)
.DocumentEventSupport
createDocumentEventSupport()
Creates an DocumentEventSupport object suitable for use with this implementation.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.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.org.w3c.dom.css.ViewCSS
createViewCSS(AbstractStylableDocument doc)
Creates a ViewCSS.static org.w3c.dom.DOMImplementation
getDOMImplementation()
Returns the default instance of this class.org.w3c.dom.css.CSSStyleSheet
getUserAgentStyleSheet()
Returns the user-agent stylesheet.protected void
initLocalizable()
-
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:
initLocalizable
in classAbstractDOMImplementation
-
createCSSEngine
public CSSEngine createCSSEngine(AbstractStylableDocument doc, CSSContext ctx, ExtendedParser ep, ValueManager[] vms, ShorthandManager[] sms)
- Specified by:
createCSSEngine
in classExtensibleDOMImplementation
-
createViewCSS
public org.w3c.dom.css.ViewCSS createViewCSS(AbstractStylableDocument doc)
Creates a ViewCSS.- Specified by:
createViewCSS
in 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.DOMException
DOM: ImplementsDOMImplementation.createDocument(String,String,DocumentType)
.- Specified by:
createDocument
in 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:
createCSSStyleSheet
in interfaceorg.w3c.dom.css.DOMImplementationCSS
-
createCSSStyleDeclaration
public org.w3c.dom.css.CSSStyleDeclaration createCSSStyleDeclaration()
Creates a style declaration.- Specified by:
createCSSStyleDeclaration
in 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:
createStyleSheet
in 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:
createElementNS
in classExtensibleDOMImplementation
-
createDocumentEventSupport
public DocumentEventSupport createDocumentEventSupport()
Creates an DocumentEventSupport object suitable for use with this implementation.- Overrides:
createDocumentEventSupport
in classAbstractDOMImplementation
-
-