Code

updated spanish.nsh and inkscape.nsi to reflect latest file-changes
[inkscape.git] / trunk / 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 {
56 public SVGCircleElementImpl()
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 }
67 //from SVGTests
68 private SVGTestsImpl _SVGTests;
69 public SVGStringList getRequiredFeatures()
70    { return _SVGTests.getRequiredFeatures(); }
71 public SVGStringList getRequiredExtensions()
72    { return _SVGTests.getRequiredExtensions(); }
73 public SVGStringList getSystemLanguage()
74    { return _SVGTests.getSystemLanguage(); }
75 public boolean hasExtension (String extension)
76    { return _SVGTests.hasExtension(extension); }
77 //end SVGTests
79 //from SVGLangSpace
80 private SVGLangSpaceImpl _SVGLangSpace;
81 public String getXMLlang()
82     { return _SVGLangSpace.getXMLlang(); }
83 public void setXMLlang(String xmllang)
84                        throws DOMException
85     { _SVGLangSpace.setXMLlang(xmllang); }
86 public String getXMLspace()
87     { return _SVGLangSpace.getXMLspace(); }
88 public void setXMLspace(String xmlspace)
89                        throws DOMException
90     { _SVGLangSpace.setXMLspace(xmlspace); }
91 //end SVGLangSpace
93 //from SVGExternalResourcesRequired
94 private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired;
95 public SVGAnimatedBoolean getExternalResourcesRequired()
96     { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); }
97 //end SVGExternalResourcesRequired
100 //from SVGStylable
101 private SVGStylableImpl _SVGStylable;
102 public SVGAnimatedString getClassName()
103     { return _SVGStylable.getClassName(); }
104 public CSSStyleDeclaration getStyle()
105     { return _SVGStylable.getStyle(); }
106 public CSSValue getPresentationAttribute(String name)
107     { return _SVGStylable.getPresentationAttribute(name); }
108 //end SVGStylable
111 //from SVGTransformable
112 private SVGTransformableImpl _SVGTransformable;
113 public SVGAnimatedTransformList getTransform()
114     { return _SVGTransformable.getTransform(); }
115 //end SVGTransformable
117 //from SVGLocatable (from SVGTransformable)
118 public SVGElement getNearestViewportElement()
119     { return _SVGTransformable.getNearestViewportElement(); }
120 public SVGElement getFarthestViewportElement()
121     { return _SVGTransformable.getFarthestViewportElement(); }
122 public SVGRect getBBox()
123     { return _SVGTransformable.getBBox(); }
124 public SVGMatrix getCTM()
125     { return _SVGTransformable.getCTM(); }
126 public SVGMatrix getScreenCTM()
127     { return _SVGTransformable.getScreenCTM(); }
128 public SVGMatrix getTransformToElement (SVGElement element)
129                   throws SVGException
130     { return _SVGTransformable.getTransformToElement(element); }
131 //end SVGLocatable
133 //from EventTarget
134 private org.inkscape.dom.events.EventTargetImpl _EventTarget;
135 public void addEventListener(String type,
136                              EventListener listener,
137                              boolean useCapture)
138     { _EventTarget.addEventListener(type, listener, useCapture); }
139 public void removeEventListener(String type,
140                                 EventListener listener,
141                                 boolean useCapture)
142     { _EventTarget.removeEventListener(type, listener, useCapture); }
143 public boolean dispatchEvent(Event evt)
144                              throws EventException
145     { return _EventTarget.dispatchEvent(evt); }
146 public void addEventListenerNS(String namespaceURI,
147                                String type,
148                                EventListener listener,
149                                boolean useCapture,
150                                Object evtGroup)
151     { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); }
152 public void removeEventListenerNS(String namespaceURI,
153                                   String type,
154                                   EventListener listener,
155                                   boolean useCapture)
156     { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); }
157 public boolean willTriggerNS(String namespaceURI,
158                              String type)
159     { return _EventTarget.willTriggerNS(namespaceURI, type); }
160 public boolean hasEventListenerNS(String namespaceURI,
161                                   String type)
162     { return _EventTarget.hasEventListenerNS(namespaceURI, type); }
163 //end EventTarget
166 public native SVGAnimatedLength getCx( );
168 public native SVGAnimatedLength getCy( );
170 public native SVGAnimatedLength getR( );