Code

More MI delegation. 28 left
[inkscape.git] / src / bind / java / org / inkscape / dom / svg / SVGEllipseElementImpl.java
1 /**
2  * This is a simple mechanism to bind Inkscape to Java, and thence
3  * to all of the nice things that can be layered upon that.
4  *
5  * Authors:
6  *   Bob Jamison
7  *
8  * Copyright (c) 2007-2008 Inkscape.org
9  *
10  *  This library is free software; you can redistribute it and/or
11  *  modify it under the terms of the GNU Lesser General Public
12  *  License as published by the Free Software Foundation; either
13  *  version 3 of the License, or (at your option) any later version.
14  *
15  *  This library is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  *  Lesser General Public License for more details.
19  *
20  *  You should have received a copy of the GNU Lesser General Public
21  *  License along with this library; if not, write to the Free Software
22  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
23  *
24  *  Note that these SVG files are implementations of the Java
25  *  interface package found here:
26  *      http://www.w3.org/TR/SVG/java.html
27  */
30 package org.inkscape.dom.svg;
32 import org.w3c.dom.DOMException;
34 import org.w3c.dom.svg.*;
36 import org.w3c.dom.css.CSSStyleDeclaration;
37 import org.w3c.dom.css.CSSValue;
39 import org.w3c.dom.events.Event;
40 import org.w3c.dom.events.EventTarget;
41 import org.w3c.dom.events.EventException;
42 import org.w3c.dom.events.EventListener;
45 public class SVGEllipseElementImpl
46        extends
47                SVGElementImpl
48                //SVGTests,
49                //SVGLangSpace,
50                //SVGExternalResourcesRequired,
51                //SVGStylable,
52                //SVGTransformable,
53                //EventTarget
54         implements org.w3c.dom.svg.SVGEllipseElement
55 {
56 public SVGEllipseElementImpl()
57 {
58     imbue(_SVGTests = new SVGTestsImpl());
59     imbue(_SVGLangSpace = new SVGLangSpaceImpl());
60     imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl());
61     imbue(_SVGStylable = new SVGStylableImpl());
62     imbue(_SVGTransformable = new SVGTransformableImpl());
63     imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl());
64 }
66 //from SVGTests
67 private SVGTestsImpl _SVGTests;
68 public SVGStringList getRequiredFeatures()
69    { return _SVGTests.getRequiredFeatures(); }
70 public SVGStringList getRequiredExtensions()
71    { return _SVGTests.getRequiredExtensions(); }
72 public SVGStringList getSystemLanguage()
73    { return _SVGTests.getSystemLanguage(); }
74 public boolean hasExtension (String extension)
75    { return _SVGTests.hasExtension(extension); }
76 //end SVGTests
78 //from SVGLangSpace
79 private SVGLangSpaceImpl _SVGLangSpace;
80 public String getXMLlang()
81     { return _SVGLangSpace.getXMLlang(); }
82 public void setXMLlang(String xmllang)
83                        throws DOMException
84     { _SVGLangSpace.setXMLlang(xmllang); }
85 public String getXMLspace()
86     { return _SVGLangSpace.getXMLspace(); }
87 public void setXMLspace(String xmlspace)
88                        throws DOMException
89     { _SVGLangSpace.setXMLspace(xmlspace); }
90 //end SVGLangSpace
92 //from SVGExternalResourcesRequired
93 private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired;
94 public SVGAnimatedBoolean getExternalResourcesRequired()
95     { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); }
96 //end SVGExternalResourcesRequired
98 //from SVGStylable
99 private SVGStylableImpl _SVGStylable;
100 public SVGAnimatedString getClassName()
101     { return _SVGStylable.getClassName(); }
102 public CSSStyleDeclaration getStyle()
103     { return _SVGStylable.getStyle(); }
104 public CSSValue getPresentationAttribute(String name)
105     { return _SVGStylable.getPresentationAttribute(name); }
106 //end SVGStylable
108 //from SVGTransformable
109 private SVGTransformableImpl _SVGTransformable;
110 public SVGAnimatedTransformList getTransform()
111     { return _SVGTransformable.getTransform(); }
112 //end SVGTransformable
114 //from SVGLocatable (from SVGTransformable)
115 public SVGElement getNearestViewportElement()
116     { return _SVGTransformable.getNearestViewportElement(); }
117 public SVGElement getFarthestViewportElement()
118     { return _SVGTransformable.getFarthestViewportElement(); }
119 public SVGRect getBBox()
120     { return _SVGTransformable.getBBox(); }
121 public SVGMatrix getCTM()
122     { return _SVGTransformable.getCTM(); }
123 public SVGMatrix getScreenCTM()
124     { return _SVGTransformable.getScreenCTM(); }
125 public SVGMatrix getTransformToElement (SVGElement element)
126                   throws SVGException
127     { return _SVGTransformable.getTransformToElement(element); }
128 //end SVGLocatable
130 //from EventTarget
131 private org.inkscape.dom.events.EventTargetImpl _EventTarget;
132 public void addEventListener(String type,
133                              EventListener listener,
134                              boolean useCapture)
135     { _EventTarget.addEventListener(type, listener, useCapture); }
136 public void removeEventListener(String type,
137                                 EventListener listener,
138                                 boolean useCapture)
139     { _EventTarget.removeEventListener(type, listener, useCapture); }
140 public boolean dispatchEvent(Event evt)
141                              throws EventException
142     { return _EventTarget.dispatchEvent(evt); }
143 public void addEventListenerNS(String namespaceURI,
144                                String type,
145                                EventListener listener,
146                                boolean useCapture,
147                                Object evtGroup)
148     { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); }
149 public void removeEventListenerNS(String namespaceURI,
150                                   String type,
151                                   EventListener listener,
152                                   boolean useCapture)
153     { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); }
154 public boolean willTriggerNS(String namespaceURI,
155                              String type)
156     { return _EventTarget.willTriggerNS(namespaceURI, type); }
157 public boolean hasEventListenerNS(String namespaceURI,
158                                   String type)
159     { return _EventTarget.hasEventListenerNS(namespaceURI, type); }
160 //end EventTarget
164 public native SVGAnimatedLength getCx( );
166 public native SVGAnimatedLength getCy( );
168 public native SVGAnimatedLength getRx( );
170 public native SVGAnimatedLength getRy( );