1 18 package org.apache.batik.dom.svg; 19 20 import org.apache.batik.dom.AbstractDocument; 21 import org.w3c.dom.Node ; 22 import org.w3c.dom.svg.SVGAnimatedEnumeration; 23 import org.w3c.dom.svg.SVGClipPathElement; 24 25 31 public class SVGOMClipPathElement 32 extends SVGGraphicsElement 33 implements SVGClipPathElement { 34 35 38 protected final static String [] CLIP_PATH_UNITS_VALUES = { 39 "", 40 SVG_USER_SPACE_ON_USE_VALUE, 41 SVG_OBJECT_BOUNDING_BOX_VALUE 42 }; 43 44 47 protected SVGOMClipPathElement() { 48 } 49 50 55 public SVGOMClipPathElement(String prefix, AbstractDocument owner) { 56 super(prefix, owner); 57 } 58 59 62 public String getLocalName() { 63 return SVG_CLIP_PATH_TAG; 64 } 65 66 69 public SVGAnimatedEnumeration getClipPathUnits() { 70 return getAnimatedEnumerationAttribute 71 (null, SVG_CLIP_PATH_UNITS_ATTRIBUTE, CLIP_PATH_UNITS_VALUES, 72 (short)1); 73 } 74 75 78 protected Node newNode() { 79 return new SVGOMClipPathElement(); 80 } 81 } 82 | Popular Tags |