1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 package org.vectomatic.dom.svg;
31
32 import org.vectomatic.dom.svg.events.ActivateEvent;
33 import org.vectomatic.dom.svg.events.ActivateHandler;
34 import org.vectomatic.dom.svg.events.BeginEvent;
35 import org.vectomatic.dom.svg.events.BeginHandler;
36 import org.vectomatic.dom.svg.events.EndEvent;
37 import org.vectomatic.dom.svg.events.EndHandler;
38 import org.vectomatic.dom.svg.events.FocusInEvent;
39 import org.vectomatic.dom.svg.events.FocusInHandler;
40 import org.vectomatic.dom.svg.events.FocusOutEvent;
41 import org.vectomatic.dom.svg.events.FocusOutHandler;
42 import org.vectomatic.dom.svg.events.HasAnimationHandlers;
43 import org.vectomatic.dom.svg.events.HasGraphicalHandlers;
44 import org.vectomatic.dom.svg.events.RepeatEvent;
45 import org.vectomatic.dom.svg.events.RepeatHandler;
46 import org.vectomatic.dom.svg.impl.SVGAnimationElement;
47 import org.vectomatic.dom.svg.impl.SVGElement;
48 import org.vectomatic.dom.svg.itf.ISVGExternalResourcesRequired;
49 import org.vectomatic.dom.svg.itf.ISVGTests;
50
51 import com.google.gwt.core.client.JavaScriptException;
52 import com.google.gwt.event.dom.client.ClickEvent;
53 import com.google.gwt.event.dom.client.ClickHandler;
54 import com.google.gwt.event.dom.client.LoadEvent;
55 import com.google.gwt.event.dom.client.LoadHandler;
56 import com.google.gwt.event.dom.client.MouseDownEvent;
57 import com.google.gwt.event.dom.client.MouseDownHandler;
58 import com.google.gwt.event.dom.client.MouseMoveEvent;
59 import com.google.gwt.event.dom.client.MouseMoveHandler;
60 import com.google.gwt.event.dom.client.MouseOutEvent;
61 import com.google.gwt.event.dom.client.MouseOutHandler;
62 import com.google.gwt.event.dom.client.MouseOverEvent;
63 import com.google.gwt.event.dom.client.MouseOverHandler;
64 import com.google.gwt.event.dom.client.MouseUpEvent;
65 import com.google.gwt.event.dom.client.MouseUpHandler;
66 import com.google.gwt.event.dom.client.TouchCancelEvent;
67 import com.google.gwt.event.dom.client.TouchCancelHandler;
68 import com.google.gwt.event.dom.client.TouchEndEvent;
69 import com.google.gwt.event.dom.client.TouchEndHandler;
70 import com.google.gwt.event.dom.client.TouchMoveEvent;
71 import com.google.gwt.event.dom.client.TouchMoveHandler;
72 import com.google.gwt.event.dom.client.TouchStartEvent;
73 import com.google.gwt.event.dom.client.TouchStartHandler;
74 import com.google.gwt.event.shared.HandlerRegistration;
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92 public abstract class OMSVGAnimationElement extends OMSVGElement implements HasGraphicalHandlers, HasAnimationHandlers, ISVGTests, ISVGExternalResourcesRequired {
93 protected OMSVGAnimationElement(SVGAnimationElement ot) {
94 super(ot);
95 }
96
97
98
99
100
101 public final OMSVGElement getTargetElement() {
102 return (OMSVGElement)convert(((SVGAnimationElement)ot).getTargetElement());
103 }
104
105
106
107
108
109
110
111
112
113
114 public final float getStartTime() throws JavaScriptException {
115 return ((SVGAnimationElement)ot).getStartTime();
116 }
117
118
119
120
121
122
123 public final float getCurrentTime() {
124 return ((SVGAnimationElement)ot).getCurrentTime();
125 }
126
127
128
129
130
131
132
133
134 public final float getSimpleDuration() throws JavaScriptException {
135 return ((SVGAnimationElement)ot).getSimpleDuration();
136 }
137
138
139
140
141
142
143
144
145 public final void beginElement() {
146 ((SVGAnimationElement)ot).beginElement();
147 }
148
149
150
151
152
153
154
155 public final void beginElementAt(float offset) {
156 ((SVGAnimationElement)ot).beginElementAt(offset);
157 }
158
159
160
161
162
163
164 public final void endElement() {
165 ((SVGAnimationElement)ot).endElement();
166 }
167
168
169
170
171
172
173
174 public final void endElementAt(float offset) {
175 ((SVGAnimationElement)ot).endElementAt(offset);
176 }
177
178
179
180
181
182
183
184
185
186
187
188
189
190 public final OMSVGAnimatedBoolean getExternalResourcesRequired() {
191 return ((SVGAnimationElement)ot).getExternalResourcesRequired();
192 }
193
194
195
196
197
198
199 public final OMSVGStringList getRequiredFeatures() {
200 return ((SVGAnimationElement)ot).getRequiredFeatures();
201 }
202
203
204
205
206 public final OMSVGStringList getRequiredExtensions() {
207 return ((SVGAnimationElement)ot).getRequiredExtensions();
208 }
209
210
211
212
213 public final OMSVGStringList getSystemLanguage() {
214 return ((SVGAnimationElement)ot).getSystemLanguage();
215 }
216
217
218
219
220
221
222 public final boolean hasExtension(String extension) {
223 return ((SVGAnimationElement)ot).hasExtension(extension);
224 }
225
226 @Override
227 public final HandlerRegistration addClickHandler(ClickHandler handler) {
228 return addDomHandler(handler, ClickEvent.getType());
229 }
230 @Override
231 public final HandlerRegistration addLoadHandler(LoadHandler handler) {
232 return addDomHandler(handler, LoadEvent.getType());
233 }
234 @Override
235 public final HandlerRegistration addMouseDownHandler(MouseDownHandler handler) {
236 return addDomHandler(handler, MouseDownEvent.getType());
237 }
238 @Override
239 public final HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler) {
240 return addDomHandler(handler, MouseMoveEvent.getType());
241 }
242 @Override
243 public final HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
244 return addDomHandler(handler, MouseOutEvent.getType());
245 }
246 @Override
247 public final HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
248 return addDomHandler(handler, MouseOverEvent.getType());
249 }
250 @Override
251 public final HandlerRegistration addMouseUpHandler(MouseUpHandler handler) {
252 return addDomHandler(handler, MouseUpEvent.getType());
253 }
254 @Override
255 public final HandlerRegistration addTouchCancelHandler(TouchCancelHandler handler) {
256 return addDomHandler(handler, TouchCancelEvent.getType());
257 }
258 @Override
259 public final HandlerRegistration addTouchEndHandler(TouchEndHandler handler) {
260 return addDomHandler(handler, TouchEndEvent.getType());
261 }
262 @Override
263 public final HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) {
264 return addDomHandler(handler, TouchMoveEvent.getType());
265 }
266 @Override
267 public final HandlerRegistration addTouchStartHandler(TouchStartHandler handler) {
268 return addDomHandler(handler, TouchStartEvent.getType());
269 }
270 @Override
271 public final HandlerRegistration addActivateHandler(ActivateHandler handler) {
272 return addDomHandler(handler, ActivateEvent.getType());
273 }
274 @Override
275 public final HandlerRegistration addBeginHandler(BeginHandler handler) {
276 return addDomHandler(handler, BeginEvent.getType());
277 }
278 @Override
279 public final HandlerRegistration addEndHandler(EndHandler handler) {
280 return addDomHandler(handler, EndEvent.getType());
281 }
282 @Override
283 public final HandlerRegistration addFocusInHandler(FocusInHandler handler) {
284 return addDomHandler(handler, FocusInEvent.getType());
285 }
286 @Override
287 public final HandlerRegistration addFocusOutHandler(FocusOutHandler handler) {
288 return addDomHandler(handler, FocusOutEvent.getType());
289 }
290 @Override
291 public final HandlerRegistration addRepeatHandler(RepeatHandler handler) {
292 return addDomHandler(handler, RepeatEvent.getType());
293 }
294 }