1 18 package org.apache.batik.dom.svg; 19 20 import org.apache.batik.dom.AbstractDocument; 21 import org.w3c.dom.svg.SVGAnimatedLength; 22 import org.w3c.dom.svg.SVGAnimatedString; 23 import org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes; 24 25 32 public abstract class SVGOMFilterPrimitiveStandardAttributes 33 extends SVGStylableElement 34 implements SVGFilterPrimitiveStandardAttributes { 35 36 39 protected SVGOMFilterPrimitiveStandardAttributes() { 40 } 41 42 47 protected SVGOMFilterPrimitiveStandardAttributes(String prefix, 48 AbstractDocument owner) { 49 super(prefix, owner); 50 } 51 52 56 public SVGAnimatedLength getX() { 57 return getAnimatedLengthAttribute 58 (null, SVG_X_ATTRIBUTE, SVG_FILTER_PRIMITIVE_X_DEFAULT_VALUE, 59 SVGOMAnimatedLength.HORIZONTAL_LENGTH); 60 } 61 62 66 public SVGAnimatedLength getY() { 67 return getAnimatedLengthAttribute 68 (null, SVG_Y_ATTRIBUTE, SVG_FILTER_PRIMITIVE_Y_DEFAULT_VALUE, 69 SVGOMAnimatedLength.VERTICAL_LENGTH); 70 } 71 72 76 public SVGAnimatedLength getWidth() { 77 return getAnimatedLengthAttribute 78 (null, SVG_WIDTH_ATTRIBUTE, 79 SVG_FILTER_PRIMITIVE_WIDTH_DEFAULT_VALUE, 80 SVGOMAnimatedLength.HORIZONTAL_LENGTH); 81 } 82 83 87 public SVGAnimatedLength getHeight() { 88 return getAnimatedLengthAttribute 89 (null, SVG_HEIGHT_ATTRIBUTE, 90 SVG_FILTER_PRIMITIVE_HEIGHT_DEFAULT_VALUE, 91 SVGOMAnimatedLength.VERTICAL_LENGTH); 92 } 93 94 98 public SVGAnimatedString getResult() { 99 return getAnimatedStringAttribute(null, SVG_RESULT_ATTRIBUTE); 100 } 101 } 102 | Popular Tags |