1 18 package org.apache.batik.dom.svg; 19 20 import org.apache.batik.util.SVGConstants; 21 import org.w3c.dom.svg.SVGAnimatedTransformList; 22 23 29 public class SVGTransformableSupport { 30 33 public SVGTransformableSupport() { 34 } 35 36 39 public static final String TRANSFORM_DEFAULT_VALUE 40 = ""; 41 42 46 public static SVGAnimatedTransformList getTransform(AbstractElement elt) { 47 SVGOMAnimatedTransformList result =(SVGOMAnimatedTransformList) 48 elt.getLiveAttributeValue(null, SVGConstants.SVG_TRANSFORM_ATTRIBUTE); 49 if (result == null) { 50 result = new SVGOMAnimatedTransformList(elt, null, 51 SVGConstants.SVG_TRANSFORM_ATTRIBUTE, 52 TRANSFORM_DEFAULT_VALUE); 53 elt.putLiveAttributeValue(null, 54 SVGConstants.SVG_TRANSFORM_ATTRIBUTE, 55 result); 56 } 57 return result; 58 59 } 60 } 61 | Popular Tags |