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.SVGAnimatedLength; 24 import org.w3c.dom.svg.SVGAnimatedString; 25 import org.w3c.dom.svg.SVGFEMorphologyElement; 26 27 33 public class SVGOMFEMorphologyElement 34 extends SVGOMFilterPrimitiveStandardAttributes 35 implements SVGFEMorphologyElement { 36 37 40 protected final static String [] OPERATOR_VALUES = { 41 "", 42 SVG_ERODE_VALUE, 43 SVG_DILATE_VALUE 44 }; 45 46 49 protected SVGOMFEMorphologyElement() { 50 } 51 52 57 public SVGOMFEMorphologyElement(String prefix, AbstractDocument owner) { 58 super(prefix, owner); 59 } 60 61 64 public String getLocalName() { 65 return SVG_FE_MORPHOLOGY_TAG; 66 } 67 68 71 public SVGAnimatedString getIn1() { 72 return getAnimatedStringAttribute(null, SVG_IN_ATTRIBUTE); 73 } 74 75 78 public SVGAnimatedEnumeration getOperator() { 79 return getAnimatedEnumerationAttribute 80 (null, SVG_OPERATOR_ATTRIBUTE, OPERATOR_VALUES, (short)1); 81 } 82 83 86 public SVGAnimatedLength getRadiusX() { 87 throw new RuntimeException (" !!! TODO getRadiusX()"); 88 } 89 90 93 public SVGAnimatedLength getRadiusY() { 94 throw new RuntimeException (" !!! TODO getRadiusY()"); 95 } 96 97 100 protected Node newNode() { 101 return new SVGOMFEMorphologyElement(); 102 } 103 } 104 | Popular Tags |