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.SVGAnimatedBoolean; 23 import org.w3c.dom.svg.SVGAnimatedEnumeration; 24 import org.w3c.dom.svg.SVGAnimatedInteger; 25 import org.w3c.dom.svg.SVGAnimatedLength; 26 import org.w3c.dom.svg.SVGAnimatedNumber; 27 import org.w3c.dom.svg.SVGAnimatedNumberList; 28 import org.w3c.dom.svg.SVGAnimatedString; 29 import org.w3c.dom.svg.SVGFEConvolveMatrixElement; 30 31 37 public class SVGOMFEConvolveMatrixElement 38 extends SVGOMFilterPrimitiveStandardAttributes 39 implements SVGFEConvolveMatrixElement { 40 41 44 protected final static String [] EDGE_MODE_VALUES = { 45 "", 46 SVG_DUPLICATE_VALUE, 47 SVG_WRAP_VALUE, 48 SVG_NONE_VALUE 49 }; 50 51 54 protected SVGOMFEConvolveMatrixElement() { 55 } 56 57 62 public SVGOMFEConvolveMatrixElement(String prefix, 63 AbstractDocument owner) { 64 super(prefix, owner); 65 } 66 67 70 public String getLocalName() { 71 return SVG_FE_CONVOLVE_MATRIX_TAG; 72 } 73 74 77 public SVGAnimatedString getIn1() { 78 return getAnimatedStringAttribute(null, SVG_IN_ATTRIBUTE); 79 } 80 81 84 public SVGAnimatedEnumeration getEdgeMode() { 85 return getAnimatedEnumerationAttribute 86 (null, SVG_EDGE_MODE_ATTRIBUTE, EDGE_MODE_VALUES, (short)1); 87 } 88 89 92 public SVGAnimatedNumberList getKernelMatrix() { 93 throw new RuntimeException ("!!! TODO: getKernelMatrix()"); 94 } 95 96 99 public SVGAnimatedInteger getOrderX() { 100 throw new RuntimeException ("!!! TODO: getOrderX()"); 101 } 102 103 106 public SVGAnimatedInteger getOrderY() { 107 throw new RuntimeException ("!!! TODO: getOrderY()"); 108 } 109 110 113 public SVGAnimatedInteger getTargetX() { 114 throw new RuntimeException ("!!! TODO: getTargetX()"); 116 } 117 118 121 public SVGAnimatedInteger getTargetY() { 122 throw new RuntimeException ("!!! TODO: getTargetY()"); 124 } 125 126 129 public SVGAnimatedNumber getDivisor() { 130 throw new RuntimeException ("!!! TODO: getDivisor()"); 132 } 133 134 138 public SVGAnimatedNumber getBias() { 139 return getAnimatedNumberAttribute(null, SVG_BIAS_ATTRIBUTE, 0f); 140 } 141 142 146 public SVGAnimatedLength getKernelUnitLengthX() { 147 throw new RuntimeException ("!!! TODO: getKernelUnitLengthX()"); 148 } 149 150 154 public SVGAnimatedLength getKernelUnitLengthY() { 155 throw new RuntimeException ("!!! TODO: getKernelUnitLengthY()"); 156 } 157 158 162 public SVGAnimatedBoolean getPreserveAlpha() { 163 LiveAttributeValue lav; 164 lav = getLiveAttributeValue(null, SVG_PRESERVE_ALPHA_ATTRIBUTE); 165 if (lav == null) { 166 lav = new SVGOMAnimatedBoolean 167 (this, null, SVG_PRESERVE_ALPHA_ATTRIBUTE, 168 getAttributeNodeNS(null, SVG_PRESERVE_ALPHA_ATTRIBUTE), 169 "false"); 170 putLiveAttributeValue(null, SVG_PRESERVE_ALPHA_ATTRIBUTE, lav); 171 } 172 return (SVGAnimatedBoolean)lav; 173 } 174 175 178 protected Node newNode() { 179 return new SVGOMFEConvolveMatrixElement(); 180 } 181 } 182 | Popular Tags |