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.SVGAnimatedString; 26 import org.w3c.dom.svg.SVGFEImageElement; 27 28 34 public class SVGOMFEImageElement 35 extends SVGOMFilterPrimitiveStandardAttributes 36 implements SVGFEImageElement { 37 38 41 protected final static AttributeInitializer attributeInitializer; 42 static { 43 attributeInitializer = new AttributeInitializer(4); 44 attributeInitializer.addAttribute(XMLSupport.XMLNS_NAMESPACE_URI, 45 null, "xmlns:xlink", 46 XLinkSupport.XLINK_NAMESPACE_URI); 47 attributeInitializer.addAttribute(XLinkSupport.XLINK_NAMESPACE_URI, 48 "xlink", "type", "simple"); 49 attributeInitializer.addAttribute(XLinkSupport.XLINK_NAMESPACE_URI, 50 "xlink", "show", "embed"); 51 attributeInitializer.addAttribute(XLinkSupport.XLINK_NAMESPACE_URI, 52 "xlink", "actuate", "onLoad"); 53 } 54 55 58 protected SVGOMFEImageElement() { 59 } 60 61 66 public SVGOMFEImageElement(String prefix, 67 AbstractDocument owner) { 68 super(prefix, owner); 69 } 70 71 74 public String getLocalName() { 75 return SVG_FE_IMAGE_TAG; 76 } 77 78 82 public SVGAnimatedString getHref() { 83 return SVGURIReferenceSupport.getHref(this); 84 } 85 86 88 91 public String getXMLlang() { 92 return XMLSupport.getXMLLang(this); 93 } 94 95 98 public void setXMLlang(String lang) { 99 setAttributeNS(XMLSupport.XML_NAMESPACE_URI, 100 XMLSupport.XML_LANG_ATTRIBUTE, 101 lang); 102 } 103 104 107 public String getXMLspace() { 108 return XMLSupport.getXMLSpace(this); 109 } 110 111 114 public void setXMLspace(String space) { 115 setAttributeNS(XMLSupport.XML_NAMESPACE_URI, 116 XMLSupport.XML_SPACE_ATTRIBUTE, 117 space); 118 } 119 120 122 126 public SVGAnimatedBoolean getExternalResourcesRequired() { 127 return SVGExternalResourcesRequiredSupport. 128 getExternalResourcesRequired(this); 129 } 130 131 135 protected AttributeInitializer getAttributeInitializer() { 136 return attributeInitializer; 137 } 138 139 142 protected Node newNode() { 143 return new SVGOMFEImageElement(); 144 } 145 } 146 | Popular Tags |