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.SVGAnimatedNumberList; 24 import org.w3c.dom.svg.SVGAnimatedString; 25 import org.w3c.dom.svg.SVGFEColorMatrixElement; 26 27 33 public class SVGOMFEColorMatrixElement 34 extends SVGOMFilterPrimitiveStandardAttributes 35 implements SVGFEColorMatrixElement { 36 37 40 protected final static String [] TYPE_VALUES = { 41 "", 42 SVG_MATRIX_VALUE, 43 SVG_SATURATE_VALUE, 44 SVG_HUE_ROTATE_VALUE, 45 SVG_LUMINANCE_TO_ALPHA_VALUE 46 }; 47 48 51 protected SVGOMFEColorMatrixElement() { 52 } 53 54 59 public SVGOMFEColorMatrixElement(String prefix, AbstractDocument owner) { 60 super(prefix, owner); 61 } 62 63 66 public String getLocalName() { 67 return SVG_FE_COLOR_MATRIX_TAG; 68 } 69 70 73 public SVGAnimatedString getIn1() { 74 return getAnimatedStringAttribute(null, SVG_IN_ATTRIBUTE); 75 } 76 77 80 public SVGAnimatedEnumeration getType() { 81 return getAnimatedEnumerationAttribute 82 (null, SVG_TYPE_ATTRIBUTE, TYPE_VALUES, (short)1); 83 } 84 85 88 public SVGAnimatedNumberList getValues() { 89 throw new RuntimeException ("!!! TODO: getValues()"); 90 } 91 92 95 protected Node newNode() { 96 return new SVGOMFEColorMatrixElement(); 97 } 98 } 99 | Popular Tags |