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.FocusInEvent;
35 import org.vectomatic.dom.svg.events.FocusInHandler;
36 import org.vectomatic.dom.svg.events.FocusOutEvent;
37 import org.vectomatic.dom.svg.events.FocusOutHandler;
38 import org.vectomatic.dom.svg.events.HasGraphicalHandlers;
39 import org.vectomatic.dom.svg.impl.SVGElement;
40 import org.vectomatic.dom.svg.impl.SVGEllipseElement;
41 import org.vectomatic.dom.svg.itf.ISVGExternalResourcesRequired;
42 import org.vectomatic.dom.svg.itf.ISVGGraphicsElement;
43 import org.vectomatic.dom.svg.itf.ISVGLangSpace;
44 import org.vectomatic.dom.svg.itf.ISVGStylable;
45 import org.vectomatic.dom.svg.itf.ISVGTests;
46 import org.vectomatic.dom.svg.itf.ISVGTransformable;
47 import org.vectomatic.dom.svg.utils.DOMHelper;
48 import org.vectomatic.dom.svg.utils.SVGConstants;
49
50 import com.google.gwt.core.client.JavaScriptException;
51 import com.google.gwt.dom.client.TagName;
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.DragEndEvent;
55 import com.google.gwt.event.dom.client.DragEndHandler;
56 import com.google.gwt.event.dom.client.DragEnterEvent;
57 import com.google.gwt.event.dom.client.DragEnterHandler;
58 import com.google.gwt.event.dom.client.DragEvent;
59 import com.google.gwt.event.dom.client.DragHandler;
60 import com.google.gwt.event.dom.client.DragLeaveEvent;
61 import com.google.gwt.event.dom.client.DragLeaveHandler;
62 import com.google.gwt.event.dom.client.DragOverEvent;
63 import com.google.gwt.event.dom.client.DragOverHandler;
64 import com.google.gwt.event.dom.client.DragStartEvent;
65 import com.google.gwt.event.dom.client.DragStartHandler;
66 import com.google.gwt.event.dom.client.DropEvent;
67 import com.google.gwt.event.dom.client.DropHandler;
68 import com.google.gwt.event.dom.client.LoadEvent;
69 import com.google.gwt.event.dom.client.LoadHandler;
70 import com.google.gwt.event.dom.client.MouseDownEvent;
71 import com.google.gwt.event.dom.client.MouseDownHandler;
72 import com.google.gwt.event.dom.client.MouseMoveEvent;
73 import com.google.gwt.event.dom.client.MouseMoveHandler;
74 import com.google.gwt.event.dom.client.MouseOutEvent;
75 import com.google.gwt.event.dom.client.MouseOutHandler;
76 import com.google.gwt.event.dom.client.MouseOverEvent;
77 import com.google.gwt.event.dom.client.MouseOverHandler;
78 import com.google.gwt.event.dom.client.MouseUpEvent;
79 import com.google.gwt.event.dom.client.MouseUpHandler;
80 import com.google.gwt.event.dom.client.TouchCancelEvent;
81 import com.google.gwt.event.dom.client.TouchCancelHandler;
82 import com.google.gwt.event.dom.client.TouchEndEvent;
83 import com.google.gwt.event.dom.client.TouchEndHandler;
84 import com.google.gwt.event.dom.client.TouchMoveEvent;
85 import com.google.gwt.event.dom.client.TouchMoveHandler;
86 import com.google.gwt.event.dom.client.TouchStartEvent;
87 import com.google.gwt.event.dom.client.TouchStartHandler;
88 import com.google.gwt.event.shared.HandlerRegistration;
89
90
91
92
93
94
95 @TagName("ellipse")
96 public class OMSVGEllipseElement extends OMSVGElement implements HasGraphicalHandlers, ISVGTests, ISVGLangSpace, ISVGExternalResourcesRequired, ISVGStylable, ISVGTransformable, ISVGGraphicsElement {
97 public OMSVGEllipseElement() {
98 this((SVGEllipseElement)DOMHelper.createElementNS(DOMHelper.getCurrentDocument(), SVGConstants.SVG_NAMESPACE_URI, SVGConstants.SVG_ELLIPSE_TAG).cast());
99 }
100
101 protected OMSVGEllipseElement(SVGEllipseElement ot) {
102 super(ot);
103 }
104
105
106
107
108
109
110
111 public final OMSVGAnimatedLength getCx() {
112 return ((SVGEllipseElement)ot).getCx();
113 }
114
115
116
117
118
119 public final OMSVGAnimatedLength getCy() {
120 return ((SVGEllipseElement)ot).getCy();
121 }
122
123
124
125
126
127 public final OMSVGAnimatedLength getRx() {
128 return ((SVGEllipseElement)ot).getRx();
129 }
130
131
132
133
134
135 public final OMSVGAnimatedLength getRy() {
136 return ((SVGEllipseElement)ot).getRy();
137 }
138
139
140
141
142
143
144
145
146
147
148
149
150
151 public final OMSVGAnimatedBoolean getExternalResourcesRequired() {
152 return ((SVGEllipseElement)ot).getExternalResourcesRequired();
153 }
154
155
156
157
158
159 public final String getXmllang() {
160 return ((SVGEllipseElement)ot).getXmllang();
161 }
162
163
164
165
166
167
168 public final void setXmllang(java.lang.String value) throws JavaScriptException {
169 ((SVGEllipseElement)ot).setXmllang(value);
170 }
171
172
173
174 public final String getXmlspace() {
175 return ((SVGEllipseElement)ot).getXmlspace();
176 }
177
178
179
180
181
182
183 public final void setXmlspace(java.lang.String value) throws JavaScriptException {
184 ((SVGEllipseElement)ot).setXmlspace(value);
185 }
186
187
188
189
190
191
192
193
194
195 public final OMSVGElement getNearestViewportElement() {
196 SVGElement elt = ((SVGEllipseElement)ot).getNearestViewportElement();
197 return elt != null ? (OMSVGElement)convert(elt) : null;
198 }
199
200
201
202
203
204
205 public final OMSVGElement getFarthestViewportElement() {
206 SVGElement elt = ((SVGEllipseElement)ot).getFarthestViewportElement();
207 return elt != null ? (OMSVGElement)convert(elt) : null;
208 }
209
210
211
212
213
214
215
216
217
218
219 public final OMSVGRect getBBox() {
220 return ((SVGEllipseElement)ot).getBBox();
221 }
222
223
224
225
226
227
228
229 public final OMSVGMatrix getCTM() {
230 return ((SVGEllipseElement)ot).getCTM();
231 }
232
233
234
235
236
237
238
239
240
241
242
243
244
245 public final OMSVGMatrix getScreenCTM() {
246 return ((SVGEllipseElement)ot).getScreenCTM();
247 }
248
249
250
251
252
253
254
255
256
257
258
259
260 public final OMSVGMatrix getTransformToElement(OMSVGElement element) throws JavaScriptException {
261 return ((SVGEllipseElement)ot).getTransformToElement(((SVGElement)element.ot));
262 }
263
264
265
266
267
268
269 public final OMSVGStringList getRequiredFeatures() {
270 return ((SVGEllipseElement)ot).getRequiredFeatures();
271 }
272
273
274
275
276 public final OMSVGStringList getRequiredExtensions() {
277 return ((SVGEllipseElement)ot).getRequiredExtensions();
278 }
279
280
281
282
283 public final OMSVGStringList getSystemLanguage() {
284 return ((SVGEllipseElement)ot).getSystemLanguage();
285 }
286
287
288
289
290
291
292 public final boolean hasExtension(String extension) {
293 return ((SVGEllipseElement)ot).hasExtension(extension);
294 }
295
296
297
298
299
300
301 public final OMSVGAnimatedTransformList getTransform() {
302 return ((SVGEllipseElement)ot).getTransform();
303 }
304
305 @Override
306 public final HandlerRegistration addClickHandler(ClickHandler handler) {
307 return addDomHandler(handler, ClickEvent.getType());
308 }
309 @Override
310 public final HandlerRegistration addDragEndHandler(DragEndHandler handler) {
311 return addDomHandler(handler, DragEndEvent.getType());
312 }
313 @Override
314 public final HandlerRegistration addDragEnterHandler(DragEnterHandler handler) {
315 return addDomHandler(handler, DragEnterEvent.getType());
316 }
317 @Override
318 public final HandlerRegistration addDragHandler(DragHandler handler) {
319 return addDomHandler(handler, DragEvent.getType());
320 }
321 @Override
322 public final HandlerRegistration addDragLeaveHandler(DragLeaveHandler handler) {
323 return addDomHandler(handler, DragLeaveEvent.getType());
324 }
325 @Override
326 public final HandlerRegistration addDragOverHandler(DragOverHandler handler) {
327 return addDomHandler(handler, DragOverEvent.getType());
328 }
329 @Override
330 public final HandlerRegistration addDragStartHandler(DragStartHandler handler) {
331 return addDomHandler(handler, DragStartEvent.getType());
332 }
333 @Override
334 public final HandlerRegistration addDropHandler(DropHandler handler) {
335 return addDomHandler(handler, DropEvent.getType());
336 }
337 @Override
338 public final HandlerRegistration addLoadHandler(LoadHandler handler) {
339 return addDomHandler(handler, LoadEvent.getType());
340 }
341 @Override
342 public final HandlerRegistration addMouseDownHandler(MouseDownHandler handler) {
343 return addDomHandler(handler, MouseDownEvent.getType());
344 }
345 @Override
346 public final HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler) {
347 return addDomHandler(handler, MouseMoveEvent.getType());
348 }
349 @Override
350 public final HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
351 return addDomHandler(handler, MouseOutEvent.getType());
352 }
353 @Override
354 public final HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
355 return addDomHandler(handler, MouseOverEvent.getType());
356 }
357 @Override
358 public final HandlerRegistration addMouseUpHandler(MouseUpHandler handler) {
359 return addDomHandler(handler, MouseUpEvent.getType());
360 }
361 @Override
362 public final HandlerRegistration addTouchCancelHandler(TouchCancelHandler handler) {
363 return addDomHandler(handler, TouchCancelEvent.getType());
364 }
365 @Override
366 public final HandlerRegistration addTouchEndHandler(TouchEndHandler handler) {
367 return addDomHandler(handler, TouchEndEvent.getType());
368 }
369 @Override
370 public final HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) {
371 return addDomHandler(handler, TouchMoveEvent.getType());
372 }
373 @Override
374 public final HandlerRegistration addTouchStartHandler(TouchStartHandler handler) {
375 return addDomHandler(handler, TouchStartEvent.getType());
376 }
377 @Override
378 public final HandlerRegistration addActivateHandler(ActivateHandler handler) {
379 return addDomHandler(handler, ActivateEvent.getType());
380 }
381 @Override
382 public final HandlerRegistration addFocusInHandler(FocusInHandler handler) {
383 return addDomHandler(handler, FocusInEvent.getType());
384 }
385 @Override
386 public final HandlerRegistration addFocusOutHandler(FocusOutHandler handler) {
387 return addDomHandler(handler, FocusOutEvent.getType());
388 }
389
390
391
392
393
394
395
396
397 public OMSVGEllipseElement(float cx, float cy, float rx, float ry) {
398 this();
399 getCx().getBaseVal().setValue(cx);
400 getCy().getBaseVal().setValue(cy);
401 getRx().getBaseVal().setValue(rx);
402 getRy().getBaseVal().setValue(ry);
403 }
404 }