1 18 package org.apache.batik.dom.svg; 19 20 import org.apache.batik.dom.AbstractDocument; 21 import org.apache.batik.dom.util.XLinkSupport; 22 import org.apache.batik.dom.util.XMLSupport; 23 import org.w3c.dom.Node ; 24 import org.w3c.dom.svg.SVGAnimatedBoolean; 25 import org.w3c.dom.svg.SVGMPathElement; 26 27 33 public class SVGOMMPathElement 34 extends SVGOMURIReferenceElement 35 implements SVGMPathElement { 36 37 40 protected final static AttributeInitializer attributeInitializer; 41 static { 42 attributeInitializer = new AttributeInitializer(4); 43 attributeInitializer.addAttribute(XMLSupport.XMLNS_NAMESPACE_URI, 44 null, "xmlns:xlink", 45 XLinkSupport.XLINK_NAMESPACE_URI); 46 attributeInitializer.addAttribute(XLinkSupport.XLINK_NAMESPACE_URI, 47 "xlink", "type", "simple"); 48 attributeInitializer.addAttribute(XLinkSupport.XLINK_NAMESPACE_URI, 49 "xlink", "show", "other"); 50 attributeInitializer.addAttribute(XLinkSupport.XLINK_NAMESPACE_URI, 51 "xlink", "actuate", "onLoad"); 52 } 53 54 57 protected SVGOMMPathElement() { 58 } 59 60 65 public SVGOMMPathElement(String prefix, AbstractDocument owner) { 66 super(prefix, owner); 67 } 68 69 72 public String getLocalName() { 73 return SVG_MPATH_TAG; 74 } 75 76 78 82 public SVGAnimatedBoolean getExternalResourcesRequired() { 83 return SVGExternalResourcesRequiredSupport. 84 getExternalResourcesRequired(this); 85 } 86 87 91 protected AttributeInitializer getAttributeInitializer() { 92 return attributeInitializer; 93 } 94 95 98 protected Node newNode() { 99 return new SVGOMMPathElement(); 100 } 101 } 102 | Popular Tags |