KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2
3    Copyright 2001-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.DOMException JavaDoc;
22 import org.w3c.dom.svg.SVGAnimatedBoolean;
23 import org.w3c.dom.svg.SVGAnimationElement;
24 import org.w3c.dom.svg.SVGElement;
25 import org.w3c.dom.svg.SVGStringList;
26
27 /**
28  * This class provides an implementation of the SVGAnimationElement interface.
29  *
30  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
31  * @version $Id: SVGOMAnimationElement.java,v 1.5 2004/08/18 07:13:14 vhardy Exp $
32  */

33 public abstract class SVGOMAnimationElement
34     extends SVGOMElement
35     implements SVGAnimationElement {
36     
37     /**
38      * Creates a new SVGOMAnimationElement.
39      */

40     protected SVGOMAnimationElement() {
41     }
42
43     /**
44      * Creates a new SVGOMAnimationElement object.
45      * @param prefix The namespace prefix.
46      * @param owner The owner document.
47      */

48     protected SVGOMAnimationElement(String JavaDoc prefix, AbstractDocument owner) {
49         super(prefix, owner);
50
51     }
52
53     /**
54      * <b>DOM</b>: Implements {@link SVGAnimationElement#getTargetElement()}.
55      */

56     public SVGElement getTargetElement() {
57         throw new RuntimeException JavaDoc("!!! TODO: getTargetElement()");
58     }
59
60     /**
61      * <b>DOM</b>: Implements {@link SVGAnimationElement#getStartTime()}.
62      */

63     public float getStartTime() {
64         throw new RuntimeException JavaDoc("!!! TODO: getStartTime()");
65     }
66
67     /**
68      * <b>DOM</b>: Implements {@link SVGAnimationElement#getCurrentTime()}.
69      */

70     public float getCurrentTime() {
71         throw new RuntimeException JavaDoc("!!! TODO: getCurrentTime()");
72     }
73
74     /**
75      * <b>DOM</b>: Implements {@link SVGAnimationElement#getSimpleDuration()}.
76      */

77     public float getSimpleDuration() throws DOMException JavaDoc {
78         throw new RuntimeException JavaDoc("!!! TODO: getSimpleDuration()");
79     }
80
81     // ElementTimeControl ////////////////////////////////////////////////
82

83     /**
84      * <b>DOM</b>: Implements {@link
85      * org.w3c.dom.smil.ElementTimeControl#beginElement()}.
86      */

87     public boolean beginElement() throws DOMException JavaDoc {
88         throw new RuntimeException JavaDoc("!!! TODO: beginElement()");
89     }
90     
91     /**
92      * <b>DOM</b>: Implements {@link
93      * org.w3c.dom.smil.ElementTimeControl#beginElementAt(float)}.
94      */

95     public boolean beginElementAt(float offset) throws DOMException JavaDoc {
96         throw new RuntimeException JavaDoc("!!! TODO: beginElementAt()");
97     }
98     
99     /**
100      * <b>DOM</b>: Implements {@link
101      * org.w3c.dom.smil.ElementTimeControl#endElement()}.
102      */

103     public boolean endElement() throws DOMException JavaDoc {
104         throw new RuntimeException JavaDoc("!!! TODO: endElement()");
105     }
106     
107     /**
108      * <b>DOM</b>: Implements {@link
109      * org.w3c.dom.smil.ElementTimeControl#endElementAt(float)}.
110      */

111     public boolean endElementAt(float offset) throws DOMException JavaDoc {
112         throw new RuntimeException JavaDoc("!!! TODO: endElementAt(float)");
113     }
114
115     // SVGExternalResourcesRequired support /////////////////////////////
116

117     /**
118      * <b>DOM</b>: Implements {@link
119      * org.w3c.dom.svg.SVGExternalResourcesRequired#getExternalResourcesRequired()}.
120      */

121     public SVGAnimatedBoolean getExternalResourcesRequired() {
122     return SVGExternalResourcesRequiredSupport.
123             getExternalResourcesRequired(this);
124     }
125
126     // SVGTests support ///////////////////////////////////////////////////
127

128     /**
129      * <b>DOM</b>: Implements {@link
130      * org.w3c.dom.svg.SVGTests#getRequiredFeatures()}.
131      */

132     public SVGStringList getRequiredFeatures() {
133     return SVGTestsSupport.getRequiredFeatures(this);
134     }
135
136     /**
137      * <b>DOM</b>: Implements {@link
138      * org.w3c.dom.svg.SVGTests#getRequiredExtensions()}.
139      */

140     public SVGStringList getRequiredExtensions() {
141     return SVGTestsSupport.getRequiredExtensions(this);
142     }
143
144     /**
145      * <b>DOM</b>: Implements {@link
146      * org.w3c.dom.svg.SVGTests#getSystemLanguage()}.
147      */

148     public SVGStringList getSystemLanguage() {
149     return SVGTestsSupport.getSystemLanguage(this);
150     }
151
152     /**
153      * <b>DOM</b>: Implements {@link
154      * org.w3c.dom.svg.SVGTests#hasExtension(String)}.
155      */

156     public boolean hasExtension(String JavaDoc extension) {
157     return SVGTestsSupport.hasExtension(this, extension);
158     }
159 }
160
Popular Tags