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.SVGAnimatedNumber; 24 import org.w3c.dom.svg.SVGAnimatedString; 25 import org.w3c.dom.svg.SVGFEDisplacementMapElement; 26 27 33 public class SVGOMFEDisplacementMapElement 34 extends SVGOMFilterPrimitiveStandardAttributes 35 implements SVGFEDisplacementMapElement { 36 37 40 protected final static String [] CHANNEL_SELECTOR_VALUES = { 41 "", 42 SVG_R_VALUE, 43 SVG_G_VALUE, 44 SVG_B_VALUE, 45 SVG_A_VALUE 46 }; 47 48 51 protected SVGOMFEDisplacementMapElement() { 52 } 53 54 59 public SVGOMFEDisplacementMapElement(String prefix, 60 AbstractDocument owner) { 61 super(prefix, owner); 62 } 63 64 67 public String getLocalName() { 68 return SVG_FE_DISPLACEMENT_MAP_TAG; 69 } 70 71 75 public SVGAnimatedString getIn1() { 76 return getAnimatedStringAttribute(null, SVG_IN_ATTRIBUTE); 77 } 78 79 83 public SVGAnimatedString getIn2() { 84 return getAnimatedStringAttribute(null, SVG_IN2_ATTRIBUTE); 85 } 86 87 91 public SVGAnimatedNumber getScale() { 92 return getAnimatedNumberAttribute(null, SVG_SCALE_ATTRIBUTE, 0f); 93 } 94 95 99 public SVGAnimatedEnumeration getXChannelSelector() { 100 return getAnimatedEnumerationAttribute 101 (null, SVG_X_CHANNEL_SELECTOR_ATTRIBUTE, 102 CHANNEL_SELECTOR_VALUES, (short)4); 103 } 104 105 109 public SVGAnimatedEnumeration getYChannelSelector() { 110 return getAnimatedEnumerationAttribute 111 (null, SVG_Y_CHANNEL_SELECTOR_ATTRIBUTE, 112 CHANNEL_SELECTOR_VALUES, (short)4); 113 } 114 115 118 protected Node newNode() { 119 return new SVGOMFEDisplacementMapElement(); 120 } 121 } 122 | Popular Tags |