org.apache.batik.dom.svg

Class SVGDOMImplementation

public class SVGDOMImplementation extends ExtensibleDOMImplementation implements CSSStyleDeclarationFactory

This class implements the {@link DOMImplementation} interface. It provides support the SVG 1.1 documents.
Nested Class Summary
protected static classSVGDOMImplementation.AElementFactory
To create a 'a' element.
protected static classSVGDOMImplementation.AltGlyphDefElementFactory
To create a 'altGlyphDef' element.
protected static classSVGDOMImplementation.AltGlyphElementFactory
To create a 'altGlyph' element.
protected static classSVGDOMImplementation.AltGlyphItemElementFactory
To create a 'altGlyphItem' element.
protected static classSVGDOMImplementation.AnimateColorElementFactory
To create a 'animateColor' element.
protected static classSVGDOMImplementation.AnimateElementFactory
To create a 'animate' element.
protected static classSVGDOMImplementation.AnimateMotionElementFactory
To create a 'animateMotion' element.
protected static classSVGDOMImplementation.AnimateTransformElementFactory
To create a 'animateTransform' element.
protected static classSVGDOMImplementation.CircleElementFactory
To create a 'circle' element.
protected static classSVGDOMImplementation.ClipPathElementFactory
To create a 'clip-path' element.
protected static classSVGDOMImplementation.ColorProfileElementFactory
To create a 'color-profile' element.
protected static classSVGDOMImplementation.CursorElementFactory
To create a 'cursor' element.
protected static classSVGDOMImplementation.DefinitionSrcElementFactory
To create a 'definition-src' element.
protected static classSVGDOMImplementation.DefsElementFactory
To create a 'defs' element.
protected static classSVGDOMImplementation.DescElementFactory
To create a 'desc' element.
protected static classSVGDOMImplementation.EllipseElementFactory
To create an 'ellipse' element.
protected static classSVGDOMImplementation.FeBlendElementFactory
To create a 'feBlend' element.
protected static classSVGDOMImplementation.FeColorMatrixElementFactory
To create a 'feColorMatrix' element.
protected static classSVGDOMImplementation.FeComponentTransferElementFactory
To create a 'feComponentTransfer' element.
protected static classSVGDOMImplementation.FeCompositeElementFactory
To create a 'feComposite' element.
protected static classSVGDOMImplementation.FeConvolveMatrixElementFactory
To create a 'feConvolveMatrix' element.
protected static classSVGDOMImplementation.FeDiffuseLightingElementFactory
To create a 'feDiffuseLighting' element.
protected static classSVGDOMImplementation.FeDisplacementMapElementFactory
To create a 'feDisplacementMap' element.
protected static classSVGDOMImplementation.FeDistantLightElementFactory
To create a 'feDistantLight' element.
protected static classSVGDOMImplementation.FeFloodElementFactory
To create a 'feFlood' element.
protected static classSVGDOMImplementation.FeFuncAElementFactory
To create a 'feFuncA' element.
protected static classSVGDOMImplementation.FeFuncBElementFactory
To create a 'feFuncB' element.
protected static classSVGDOMImplementation.FeFuncGElementFactory
To create a 'feFuncG' element.
protected static classSVGDOMImplementation.FeFuncRElementFactory
To create a 'feFuncR' element.
protected static classSVGDOMImplementation.FeGaussianBlurElementFactory
To create a 'feGaussianBlur' element.
protected static classSVGDOMImplementation.FeImageElementFactory
To create a 'feImage' element.
protected static classSVGDOMImplementation.FeMergeElementFactory
To create a 'feMerge' element.
protected static classSVGDOMImplementation.FeMergeNodeElementFactory
To create a 'feMergeNode' element.
protected static classSVGDOMImplementation.FeMorphologyElementFactory
To create a 'feMorphology' element.
protected static classSVGDOMImplementation.FeOffsetElementFactory
To create a 'feOffset' element.
protected static classSVGDOMImplementation.FePointLightElementFactory
To create a 'fePointLight' element.
protected static classSVGDOMImplementation.FeSpecularLightingElementFactory
To create a 'feSpecularLighting' element.
protected static classSVGDOMImplementation.FeSpotLightElementFactory
To create a 'feSpotLight' element.
protected static classSVGDOMImplementation.FeTileElementFactory
To create a 'feTile' element.
protected static classSVGDOMImplementation.FeTurbulenceElementFactory
To create a 'feTurbulence' element
protected static classSVGDOMImplementation.FilterElementFactory
To create a 'filter' element.
protected static classSVGDOMImplementation.FontElementFactory
To create a 'font' element.
protected static classSVGDOMImplementation.FontFaceElementFactory
To create a 'font-face' element.
protected static classSVGDOMImplementation.FontFaceFormatElementFactory
To create a 'font-face-format' element.
protected static classSVGDOMImplementation.FontFaceNameElementFactory
To create a 'font-face-name' element.
protected static classSVGDOMImplementation.FontFaceSrcElementFactory
To create a 'font-face-src' element.
protected static classSVGDOMImplementation.FontFaceUriElementFactory
To create a 'font-face-uri' element.
protected static classSVGDOMImplementation.ForeignObjectElementFactory
To create a 'foreignObject' element.
protected static classSVGDOMImplementation.GElementFactory
To create a 'g' element.
protected static classSVGDOMImplementation.GlyphElementFactory
To create a 'glyph' element.
protected static classSVGDOMImplementation.GlyphRefElementFactory
To create a 'glyphRef' element.
protected static classSVGDOMImplementation.HkernElementFactory
To create a 'hkern' element.
protected static classSVGDOMImplementation.ImageElementFactory
To create a 'image' element.
protected static classSVGDOMImplementation.LinearGradientElementFactory
To create a 'linearGradient' element.
protected static classSVGDOMImplementation.LineElementFactory
To create a 'line' element.
protected static classSVGDOMImplementation.MarkerElementFactory
To create a 'marker' element.
protected static classSVGDOMImplementation.MaskElementFactory
To create a 'mask' element.
protected static classSVGDOMImplementation.MetadataElementFactory
To create a 'metadata' element.
protected static classSVGDOMImplementation.MissingGlyphElementFactory
To create a 'missing-glyph' element.
protected static classSVGDOMImplementation.MpathElementFactory
To create a 'mpath' element.
protected static classSVGDOMImplementation.PathElementFactory
To create a 'path' element.
protected static classSVGDOMImplementation.PatternElementFactory
To create a 'pattern' element.
protected static classSVGDOMImplementation.PolygonElementFactory
To create a 'polygon' element.
protected static classSVGDOMImplementation.PolylineElementFactory
To create a 'polyline' element.
protected static classSVGDOMImplementation.RadialGradientElementFactory
To create a 'radialGradient' element.
protected static classSVGDOMImplementation.RectElementFactory
To create a 'rect' element.
protected static classSVGDOMImplementation.ScriptElementFactory
To create a 'script' element.
protected static classSVGDOMImplementation.SetElementFactory
To create a 'set' element.
protected static classSVGDOMImplementation.StopElementFactory
To create a 'stop' element.
protected static classSVGDOMImplementation.StyleElementFactory
To create a 'style' element.
protected static classSVGDOMImplementation.SvgElementFactory
To create an 'svg' element.
protected static classSVGDOMImplementation.SwitchElementFactory
To create a 'switch' element.
protected static classSVGDOMImplementation.SymbolElementFactory
To create a 'symbol' element.
protected static classSVGDOMImplementation.TextElementFactory
To create a 'text' element.
protected static classSVGDOMImplementation.TextPathElementFactory
To create a 'textPath' element.
protected static classSVGDOMImplementation.TitleElementFactory
To create a 'title' element.
protected static classSVGDOMImplementation.TrefElementFactory
To create a 'tref' element.
protected static classSVGDOMImplementation.TspanElementFactory
To create a 'tspan' element.
protected static classSVGDOMImplementation.UseElementFactory
To create a 'use' element.
protected static classSVGDOMImplementation.ViewElementFactory
To create a 'view' element.
protected static classSVGDOMImplementation.VkernElementFactory
To create a 'vkern' element.
Field Summary
protected static DOMImplementationDOM_IMPLEMENTATION
The default instance of this class.
protected HashTablefactories
protected static StringRESOURCES
The error messages bundle class name.
protected static HashTablesvg11Factories
The SVG element factories.
static StringSVG_NAMESPACE_URI
The SVG namespace uri.
Constructor Summary
SVGDOMImplementation()
Creates a new SVGDOMImplementation object.
Method Summary
CSSEnginecreateCSSEngine(AbstractStylableDocument doc, CSSContext ctx, ExtendedParser ep, ValueManager[] vms, ShorthandManager[] sms)
CSSStyleDeclarationcreateCSSStyleDeclaration()
Creates a style declaration.
CSSStyleSheetcreateCSSStyleSheet(String title, String media)
DOM: Implements {@link org.w3c.dom.css.DOMImplementationCSS#createCSSStyleSheet(String,String)}.
DocumentcreateDocument(String namespaceURI, String qualifiedName, DocumentType doctype)
DOM: Implements {@link DOMImplementation#createDocument(String,String,DocumentType)}.
DocumentEventSupportcreateDocumentEventSupport()
Creates an DocumentEventSupport object suitable for use with this implementation.
DocumentTypecreateDocumentType(String qualifiedName, String publicId, String systemId)
DOM: Implements {@link DOMImplementation#createDocumentType(String,String,String)}.
ElementcreateElementNS(AbstractDocument document, String namespaceURI, String qualifiedName)
Implements the behavior of Document.createElementNS() for this DOM implementation.
StyleSheetcreateStyleSheet(Node n, HashTable attrs)
Creates a stylesheet from the data of an xml-stylesheet processing instruction or return null.
ViewCSScreateViewCSS(AbstractStylableDocument doc)
Creates a ViewCSS.
static DOMImplementationgetDOMImplementation()
Returns the default instance of this class.
CSSStyleSheetgetUserAgentStyleSheet()
Returns the user-agent stylesheet.
protected voidinitLocalizable()

Field Detail

DOM_IMPLEMENTATION

protected static final DOMImplementation DOM_IMPLEMENTATION
The default instance of this class.

factories

protected HashTable factories

RESOURCES

protected static final String RESOURCES
The error messages bundle class name.

svg11Factories

protected static HashTable svg11Factories
The SVG element factories.

SVG_NAMESPACE_URI

public static final String SVG_NAMESPACE_URI
The SVG namespace uri.

Constructor Detail

SVGDOMImplementation

public SVGDOMImplementation()
Creates a new SVGDOMImplementation object.

Method Detail

createCSSEngine

public CSSEngine createCSSEngine(AbstractStylableDocument doc, CSSContext ctx, ExtendedParser ep, ValueManager[] vms, ShorthandManager[] sms)

createCSSStyleDeclaration

public CSSStyleDeclaration createCSSStyleDeclaration()
Creates a style declaration.

Returns: a CSSOMStyleDeclaration instance.

createCSSStyleSheet

public CSSStyleSheet createCSSStyleSheet(String title, String media)
DOM: Implements {@link org.w3c.dom.css.DOMImplementationCSS#createCSSStyleSheet(String,String)}.

createDocument

public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype)
DOM: Implements {@link DOMImplementation#createDocument(String,String,DocumentType)}.

createDocumentEventSupport

public DocumentEventSupport createDocumentEventSupport()
Creates an DocumentEventSupport object suitable for use with this implementation.

createDocumentType

public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId)
DOM: Implements {@link DOMImplementation#createDocumentType(String,String,String)}.

createElementNS

public Element createElementNS(AbstractDocument document, String namespaceURI, String qualifiedName)
Implements the behavior of Document.createElementNS() for this DOM implementation.

createStyleSheet

public StyleSheet createStyleSheet(Node n, HashTable attrs)
Creates a stylesheet from the data of an xml-stylesheet processing instruction or return null.

createViewCSS

public ViewCSS createViewCSS(AbstractStylableDocument doc)
Creates a ViewCSS.

getDOMImplementation

public static DOMImplementation getDOMImplementation()
Returns the default instance of this class.

getUserAgentStyleSheet

public CSSStyleSheet getUserAgentStyleSheet()
Returns the user-agent stylesheet.

initLocalizable

protected void initLocalizable()
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.