1 18 package org.apache.batik.dom.svg; 19 20 import org.apache.batik.dom.AbstractDocument; 21 import org.apache.batik.dom.util.XMLSupport; 22 import org.w3c.dom.svg.SVGAnimatedBoolean; 23 import org.w3c.dom.svg.SVGAnimatedTransformList; 24 import org.w3c.dom.svg.SVGElement; 25 import org.w3c.dom.svg.SVGException; 26 import org.w3c.dom.svg.SVGMatrix; 27 import org.w3c.dom.svg.SVGRect; 28 import org.w3c.dom.svg.SVGStringList; 29 30 36 public abstract class SVGGraphicsElement extends SVGStylableElement { 37 38 41 protected SVGGraphicsElement() { 42 } 43 44 49 protected SVGGraphicsElement(String prefix, AbstractDocument owner) { 50 super(prefix, owner); 51 52 } 53 54 56 60 public SVGElement getNearestViewportElement() { 61 return SVGLocatableSupport.getNearestViewportElement(this); 62 } 63 64 68 public SVGElement getFarthestViewportElement() { 69 return SVGLocatableSupport.getFarthestViewportElement(this); 70 } 71 72 76 public SVGRect getBBox() { 77 return SVGLocatableSupport.getBBox(this); 78 } 79 80 84 public SVGMatrix getCTM() { 85 return SVGLocatableSupport.getCTM(this); 86 } 87 88 92 public SVGMatrix getScreenCTM() { 93 return SVGLocatableSupport.getScreenCTM(this); 94 } 95 96 100 public SVGMatrix getTransformToElement(SVGElement element) 101 throws SVGException { 102 return SVGLocatableSupport.getTransformToElement(this, element); 103 } 104 105 107 111 public SVGAnimatedTransformList getTransform() { 112 return SVGTransformableSupport.getTransform(this); 113 } 114 115 117 121 public SVGAnimatedBoolean getExternalResourcesRequired() { 122 return SVGExternalResourcesRequiredSupport. 123 getExternalResourcesRequired(this); 124 } 125 126 128 131 public String getXMLlang() { 132 return XMLSupport.getXMLLang(this); 133 } 134 135 138 public void setXMLlang(String lang) { 139 setAttributeNS(XMLSupport.XML_NAMESPACE_URI, 140 XMLSupport.XML_LANG_ATTRIBUTE, 141 lang); 142 } 143 144 147 public String getXMLspace() { 148 return XMLSupport.getXMLSpace(this); 149 } 150 151 154 public void setXMLspace(String space) { 155 setAttributeNS(XMLSupport.XML_NAMESPACE_URI, 156 XMLSupport.XML_SPACE_ATTRIBUTE, 157 space); 158 } 159 160 162 166 public SVGStringList getRequiredFeatures() { 167 return SVGTestsSupport.getRequiredFeatures(this); 168 } 169 170 174 public SVGStringList getRequiredExtensions() { 175 return SVGTestsSupport.getRequiredExtensions(this); 176 } 177 178 182 public SVGStringList getSystemLanguage() { 183 return SVGTestsSupport.getSystemLanguage(this); 184 } 185 186 190 public boolean hasExtension(String extension) { 191 return SVGTestsSupport.hasExtension(this, extension); 192 } 193 } 194 | Popular Tags |