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.SVGAnimatedString; 24 import org.w3c.dom.svg.SVGFEBlendElement; 25 26 32 public class SVGOMFEBlendElement 33 extends SVGOMFilterPrimitiveStandardAttributes 34 implements SVGFEBlendElement { 35 36 39 protected final static String [] MODE_VALUES = { 40 "", 41 SVG_NORMAL_VALUE, 42 SVG_MULTIPLY_VALUE, 43 SVG_SCREEN_VALUE, 44 SVG_DARKEN_VALUE, 45 SVG_LIGHTEN_VALUE 46 }; 47 48 51 protected SVGOMFEBlendElement() { 52 } 53 54 59 public SVGOMFEBlendElement(String prefix, AbstractDocument owner) { 60 super(prefix, owner); 61 } 62 63 66 public String getLocalName() { 67 return SVG_FE_BLEND_TAG; 68 } 69 70 73 public SVGAnimatedString getIn1() { 74 return getAnimatedStringAttribute(null, SVG_IN_ATTRIBUTE); 75 } 76 77 80 public SVGAnimatedString getIn2() { 81 return getAnimatedStringAttribute(null, SVG_IN2_ATTRIBUTE); 82 } 83 84 87 public SVGAnimatedEnumeration getMode() { 88 return getAnimatedEnumerationAttribute 89 (null, SVG_MODE_ATTRIBUTE, MODE_VALUES, (short)1); 90 } 91 92 95 protected Node newNode() { 96 return new SVGOMFEBlendElement(); 97 } 98 } 99 | Popular Tags |