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.itf.ISVGExternalResourcesRequired;
48 import org.vectomatic.dom.svg.itf.ISVGTests;
49
50 import com.google.gwt.core.client.JavaScriptException;
51 import com.google.gwt.event.dom.client.ClickEvent;
52 import com.google.gwt.event.dom.client.ClickHandler;
53 import com.google.gwt.event.dom.client.DragEndEvent;
54 import com.google.gwt.event.dom.client.DragEndHandler;
55 import com.google.gwt.event.dom.client.DragEnterEvent;
56 import com.google.gwt.event.dom.client.DragEnterHandler;
57 import com.google.gwt.event.dom.client.DragEvent;
58 import com.google.gwt.event.dom.client.DragHandler;
59 import com.google.gwt.event.dom.client.DragLeaveEvent;
60 import com.google.gwt.event.dom.client.DragLeaveHandler;
61 import com.google.gwt.event.dom.client.DragOverEvent;
62 import com.google.gwt.event.dom.client.DragOverHandler;
63 import com.google.gwt.event.dom.client.DragStartEvent;
64 import com.google.gwt.event.dom.client.DragStartHandler;
65 import com.google.gwt.event.dom.client.DropEvent;
66 import com.google.gwt.event.dom.client.DropHandler;
67 import com.google.gwt.event.dom.client.LoadEvent;
68 import com.google.gwt.event.dom.client.LoadHandler;
69 import com.google.gwt.event.dom.client.MouseDownEvent;
70 import com.google.gwt.event.dom.client.MouseDownHandler;
71 import com.google.gwt.event.dom.client.MouseMoveEvent;
72 import com.google.gwt.event.dom.client.MouseMoveHandler;
73 import com.google.gwt.event.dom.client.MouseOutEvent;
74 import com.google.gwt.event.dom.client.MouseOutHandler;
75 import com.google.gwt.event.dom.client.MouseOverEvent;
76 import com.google.gwt.event.dom.client.MouseOverHandler;
77 import com.google.gwt.event.dom.client.MouseUpEvent;
78 import com.google.gwt.event.dom.client.MouseUpHandler;
79 import com.google.gwt.event.dom.client.TouchCancelEvent;
80 import com.google.gwt.event.dom.client.TouchCancelHandler;
81 import com.google.gwt.event.dom.client.TouchEndEvent;
82 import com.google.gwt.event.dom.client.TouchEndHandler;
83 import com.google.gwt.event.dom.client.TouchMoveEvent;
84 import com.google.gwt.event.dom.client.TouchMoveHandler;
85 import com.google.gwt.event.dom.client.TouchStartEvent;
86 import com.google.gwt.event.dom.client.TouchStartHandler;
87 import com.google.gwt.event.shared.HandlerRegistration;
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105 public abstract class OMSVGAnimationElement extends OMSVGElement implements HasGraphicalHandlers, HasAnimationHandlers, ISVGTests, ISVGExternalResourcesRequired {
106 protected OMSVGAnimationElement(SVGAnimationElement ot) {
107 super(ot);
108 }
109
110
111
112
113
114 public final OMSVGElement getTargetElement() {
115 return (OMSVGElement)convert(((SVGAnimationElement)ot).getTargetElement());
116 }
117
118
119
120
121
122
123
124
125
126
127 public final float getStartTime() throws JavaScriptException {
128 return ((SVGAnimationElement)ot).getStartTime();
129 }
130
131
132
133
134
135
136 public final float getCurrentTime() {
137 return ((SVGAnimationElement)ot).getCurrentTime();
138 }
139
140
141
142
143
144
145
146
147 public final float getSimpleDuration() throws JavaScriptException {
148 return ((SVGAnimationElement)ot).getSimpleDuration();
149 }
150
151
152
153
154
155
156
157
158 public final void beginElement() {
159 ((SVGAnimationElement)ot).beginElement();
160 }
161
162
163
164
165
166
167
168 public final void beginElementAt(float offset) {
169 ((SVGAnimationElement)ot).beginElementAt(offset);
170 }
171
172
173
174
175
176
177 public final void endElement() {
178 ((SVGAnimationElement)ot).endElement();
179 }
180
181
182
183
184
185
186
187 public final void endElementAt(float offset) {
188 ((SVGAnimationElement)ot).endElementAt(offset);
189 }
190
191
192
193
194
195
196
197
198
199
200
201
202
203 public final OMSVGAnimatedBoolean getExternalResourcesRequired() {
204 return ((SVGAnimationElement)ot).getExternalResourcesRequired();
205 }
206
207
208
209
210
211
212 public final OMSVGStringList getRequiredFeatures() {
213 return ((SVGAnimationElement)ot).getRequiredFeatures();
214 }
215
216
217
218
219 public final OMSVGStringList getRequiredExtensions() {
220 return ((SVGAnimationElement)ot).getRequiredExtensions();
221 }
222
223
224
225
226 public final OMSVGStringList getSystemLanguage() {
227 return ((SVGAnimationElement)ot).getSystemLanguage();
228 }
229
230
231
232
233
234
235 public final boolean hasExtension(String extension) {
236 return ((SVGAnimationElement)ot).hasExtension(extension);
237 }
238
239 @Override
240 public final HandlerRegistration addClickHandler(ClickHandler handler) {
241 return addDomHandler(handler, ClickEvent.getType());
242 }
243 @Override
244 public final HandlerRegistration addDragEndHandler(DragEndHandler handler) {
245 return addDomHandler(handler, DragEndEvent.getType());
246 }
247 @Override
248 public final HandlerRegistration addDragEnterHandler(DragEnterHandler handler) {
249 return addDomHandler(handler, DragEnterEvent.getType());
250 }
251 @Override
252 public final HandlerRegistration addDragHandler(DragHandler handler) {
253 return addDomHandler(handler, DragEvent.getType());
254 }
255 @Override
256 public final HandlerRegistration addDragLeaveHandler(DragLeaveHandler handler) {
257 return addDomHandler(handler, DragLeaveEvent.getType());
258 }
259 @Override
260 public final HandlerRegistration addDragOverHandler(DragOverHandler handler) {
261 return addDomHandler(handler, DragOverEvent.getType());
262 }
263 @Override
264 public final HandlerRegistration addDragStartHandler(DragStartHandler handler) {
265 return addDomHandler(handler, DragStartEvent.getType());
266 }
267 @Override
268 public final HandlerRegistration addDropHandler(DropHandler handler) {
269 return addDomHandler(handler, DropEvent.getType());
270 }
271 @Override
272 public final HandlerRegistration addLoadHandler(LoadHandler handler) {
273 return addDomHandler(handler, LoadEvent.getType());
274 }
275 @Override
276 public final HandlerRegistration addMouseDownHandler(MouseDownHandler handler) {
277 return addDomHandler(handler, MouseDownEvent.getType());
278 }
279 @Override
280 public final HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler) {
281 return addDomHandler(handler, MouseMoveEvent.getType());
282 }
283 @Override
284 public final HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
285 return addDomHandler(handler, MouseOutEvent.getType());
286 }
287 @Override
288 public final HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
289 return addDomHandler(handler, MouseOverEvent.getType());
290 }
291 @Override
292 public final HandlerRegistration addMouseUpHandler(MouseUpHandler handler) {
293 return addDomHandler(handler, MouseUpEvent.getType());
294 }
295 @Override
296 public final HandlerRegistration addTouchCancelHandler(TouchCancelHandler handler) {
297 return addDomHandler(handler, TouchCancelEvent.getType());
298 }
299 @Override
300 public final HandlerRegistration addTouchEndHandler(TouchEndHandler handler) {
301 return addDomHandler(handler, TouchEndEvent.getType());
302 }
303 @Override
304 public final HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) {
305 return addDomHandler(handler, TouchMoveEvent.getType());
306 }
307 @Override
308 public final HandlerRegistration addTouchStartHandler(TouchStartHandler handler) {
309 return addDomHandler(handler, TouchStartEvent.getType());
310 }
311 @Override
312 public final HandlerRegistration addActivateHandler(ActivateHandler handler) {
313 return addDomHandler(handler, ActivateEvent.getType());
314 }
315 @Override
316 public final HandlerRegistration addBeginHandler(BeginHandler handler) {
317 return addDomHandler(handler, BeginEvent.getType());
318 }
319 @Override
320 public final HandlerRegistration addEndHandler(EndHandler handler) {
321 return addDomHandler(handler, EndEvent.getType());
322 }
323 @Override
324 public final HandlerRegistration addFocusInHandler(FocusInHandler handler) {
325 return addDomHandler(handler, FocusInEvent.getType());
326 }
327 @Override
328 public final HandlerRegistration addFocusOutHandler(FocusOutHandler handler) {
329 return addDomHandler(handler, FocusOutEvent.getType());
330 }
331 @Override
332 public final HandlerRegistration addRepeatHandler(RepeatHandler handler) {
333 return addDomHandler(handler, RepeatEvent.getType());
334 }
335 }