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.SVGAnimatedInteger; 24 import org.w3c.dom.svg.SVGAnimatedNumber; 25 import org.w3c.dom.svg.SVGFETurbulenceElement; 26 27 33 public class SVGOMFETurbulenceElement 34 extends SVGOMFilterPrimitiveStandardAttributes 35 implements SVGFETurbulenceElement { 36 37 40 protected final static String [] STITCH_TILES_VALUES = { 41 "", 42 SVG_STITCH_VALUE, 43 SVG_NO_STITCH_VALUE 44 }; 45 46 49 protected final static String [] TYPE_VALUES = { 50 "", 51 SVG_FRACTAL_NOISE_VALUE, 52 SVG_TURBULENCE_VALUE 53 }; 54 55 58 protected SVGOMFETurbulenceElement() { 59 } 60 61 66 public SVGOMFETurbulenceElement(String prefix, 67 AbstractDocument owner) { 68 super(prefix, owner); 69 } 70 71 74 public String getLocalName() { 75 return SVG_FE_TURBULENCE_TAG; 76 } 77 78 82 public SVGAnimatedNumber getBaseFrequencyX() { 83 throw new RuntimeException ("!!! TODO getBaseFrequencyX()"); 84 } 85 86 90 public SVGAnimatedNumber getBaseFrequencyY() { 91 throw new RuntimeException ("!!! TODO getBaseFrequencyY()"); 92 } 93 94 97 public SVGAnimatedInteger getNumOctaves() { 98 return getAnimatedIntegerAttribute(null, SVG_NUM_OCTAVES_ATTRIBUTE, 1); 99 } 100 101 104 public SVGAnimatedNumber getSeed() { 105 return getAnimatedNumberAttribute(null, SVG_SEED_ATTRIBUTE, 0f); 106 } 107 108 111 public SVGAnimatedEnumeration getStitchTiles() { 112 return getAnimatedEnumerationAttribute 113 (null, SVG_STITCH_TILES_ATTRIBUTE, STITCH_TILES_VALUES, (short)2); 114 } 115 116 119 public SVGAnimatedEnumeration getType() { 120 return getAnimatedEnumerationAttribute 121 (null, SVG_TYPE_ATTRIBUTE, TYPE_VALUES, (short)2); 122 } 123 124 127 protected Node newNode() { 128 return new SVGOMFETurbulenceElement(); 129 } 130 } 131 | Popular Tags |