KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > dom > svg > SVGOMFETurbulenceElement


1 /*
2
3    Copyright 2000-2003 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.dom.svg;
19
20 import org.apache.batik.dom.AbstractDocument;
21 import org.w3c.dom.Node JavaDoc;
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 /**
28  * This class implements {@link SVGFETurbulenceElement}.
29  *
30  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
31  * @version $Id: SVGOMFETurbulenceElement.java,v 1.8 2004/08/18 07:13:16 vhardy Exp $
32  */

33 public class SVGOMFETurbulenceElement
34     extends SVGOMFilterPrimitiveStandardAttributes
35     implements SVGFETurbulenceElement {
36
37     /**
38      * The 'stitchTiles' attribute values.
39      */

40     protected final static String JavaDoc[] STITCH_TILES_VALUES = {
41         "",
42         SVG_STITCH_VALUE,
43         SVG_NO_STITCH_VALUE
44     };
45
46     /**
47      * The 'type' attribute values.
48      */

49     protected final static String JavaDoc[] TYPE_VALUES = {
50         "",
51         SVG_FRACTAL_NOISE_VALUE,
52         SVG_TURBULENCE_VALUE
53     };
54
55     /**
56      * Creates a new SVGOMFETurbulence object.
57      */

58     protected SVGOMFETurbulenceElement() {
59     }
60
61     /**
62      * Creates a new SVGOMFETurbulenceElement object.
63      * @param prefix The namespace prefix.
64      * @param owner The owner document.
65      */

66     public SVGOMFETurbulenceElement(String JavaDoc prefix,
67                                     AbstractDocument owner) {
68         super(prefix, owner);
69     }
70
71     /**
72      * <b>DOM</b>: Implements {@link Node#getLocalName()}.
73      */

74     public String JavaDoc getLocalName() {
75         return SVG_FE_TURBULENCE_TAG;
76     }
77
78     /**
79      * <b>DOM</b>: Implements {@link
80      * SVGFETurbulenceElement#getBaseFrequencyX()}.
81      */

82     public SVGAnimatedNumber getBaseFrequencyX() {
83         throw new RuntimeException JavaDoc("!!! TODO getBaseFrequencyX()");
84     }
85
86     /**
87      * <b>DOM</b>: Implements {@link
88      * SVGFETurbulenceElement#getBaseFrequencyY()}.
89      */

90     public SVGAnimatedNumber getBaseFrequencyY() {
91         throw new RuntimeException JavaDoc("!!! TODO getBaseFrequencyY()");
92     }
93
94     /**
95      * <b>DOM</b>: Implements {@link SVGFETurbulenceElement#getNumOctaves()}.
96      */

97     public SVGAnimatedInteger getNumOctaves() {
98         return getAnimatedIntegerAttribute(null, SVG_NUM_OCTAVES_ATTRIBUTE, 1);
99     }
100
101     /**
102      * <b>DOM</b>: Implements {@link SVGFETurbulenceElement#getSeed()}.
103      */

104     public SVGAnimatedNumber getSeed() {
105         return getAnimatedNumberAttribute(null, SVG_SEED_ATTRIBUTE, 0f);
106     }
107
108     /**
109      * <b>DOM</b>: Implements {@link SVGFETurbulenceElement#getStitchTiles()}.
110      */

111     public SVGAnimatedEnumeration getStitchTiles() {
112         return getAnimatedEnumerationAttribute
113             (null, SVG_STITCH_TILES_ATTRIBUTE, STITCH_TILES_VALUES, (short)2);
114     }
115
116     /**
117      * <b>DOM</b>: Implements {@link SVGFETurbulenceElement#getType()}.
118      */

119     public SVGAnimatedEnumeration getType() {
120         return getAnimatedEnumerationAttribute
121             (null, SVG_TYPE_ATTRIBUTE, TYPE_VALUES, (short)2);
122     }
123
124     /**
125      * Returns a new uninitialized instance of this object's class.
126      */

127     protected Node JavaDoc newNode() {
128         return new SVGOMFETurbulenceElement();
129     }
130 }
131
Popular Tags