Code

Finally! All of the svg-dom classes and dependencies have native implementation stubs.
[inkscape.git] / src / bind / java / org / inkscape / dom / svg / SVGCircleElementImpl.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  */
29 package org.inkscape.dom.svg;
31 import org.w3c.dom.DOMException;
33 import org.w3c.dom.svg.*;
35 import org.w3c.dom.css.CSSStyleDeclaration;
36 import org.w3c.dom.css.CSSValue;
38 import org.w3c.dom.events.EventTarget;
39 import org.w3c.dom.events.EventException;
40 import org.w3c.dom.events.Event;
41 import org.w3c.dom.events.EventListener;
44 public class SVGCircleElementImpl
45        extends
46                SVGElementImpl
47                //SVGTests,
48                //SVGLangSpace,
49                //SVGExternalResourcesRequired,
50                //SVGStylable,
51                //SVGTransformable,
52                //EventTarget
53        implements org.w3c.dom.svg.SVGCircleElement
54 {
55 //from SVGTests
56 public native SVGStringList getRequiredFeatures( );
57 public native SVGStringList getRequiredExtensions( );
58 public native SVGStringList getSystemLanguage( );
59 public native boolean hasExtension ( String extension );
60 //end SVGTests
62 //from SVGLangSpace
63 public native String getXMLlang( );
64 public native void setXMLlang( String xmllang )
65                        throws DOMException;
66 public native String getXMLspace( );
67 public native void setXMLspace( String xmlspace )
68                        throws DOMException;
69 //end SVGLangSpace
71 //from SVGExternalResourcesRequired
72 public native SVGAnimatedBoolean getExternalResourcesRequired( );
73 //end SVGExternalResourcesRequired
75 //from SVGStylable
76 public native SVGAnimatedString getClassName( );
77 public native CSSStyleDeclaration getStyle( );
78 public native CSSValue getPresentationAttribute ( String name );
79 //end SVGStylable
81 //from SVGTransformable
82 public native SVGAnimatedTransformList getTransform( );
83 //end SVGTransformable
85 //from SVGLocatable (from SVGTransformable)
86 public native SVGElement getNearestViewportElement( );
87 public native SVGElement getFarthestViewportElement( );
89 public native SVGRect   getBBox (  );
90 public native SVGMatrix getCTM (  );
91 public native SVGMatrix getScreenCTM (  );
92 public native SVGMatrix getTransformToElement ( SVGElement element )
93                   throws SVGException;
94 //end SVGLocatable
96 //from EventTarget
97 public native void addEventListener(String type,
98                              EventListener listener,
99                              boolean useCapture);
100 public native void removeEventListener(String type,
101                                 EventListener listener,
102                                 boolean useCapture);
103 public native boolean dispatchEvent(Event evt)
104                              throws EventException;
105 public native void addEventListenerNS(String namespaceURI,
106                                String type,
107                                EventListener listener,
108                                boolean useCapture,
109                                Object evtGroup);
110 public native void removeEventListenerNS(String namespaceURI,
111                                   String type,
112                                   EventListener listener,
113                                   boolean useCapture);
114 public native boolean willTriggerNS(String namespaceURI,
115                              String type);
116 public native boolean hasEventListenerNS(String namespaceURI,
117                                   String type);
118 //end EventTarget
121 public native SVGAnimatedLength getCx( );
123 public native SVGAnimatedLength getCy( );
125 public native SVGAnimatedLength getR( );