Code

Finished multiple inheritance delegation
[inkscape.git] / src / bind / java / org / inkscape / dom / svg / SVGSwitchElementImpl.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 SVGSwitchElementImpl
46        extends
47                SVGElementImpl
48                //SVGTests,
49                //SVGLangSpace,
50                //SVGExternalResourcesRequired,
51                //SVGStylable,
52                //SVGTransformable,
53                //EventTarget
54        implements org.w3c.dom.svg.SVGSwitchElement
55 {
57 public SVGSwitchElementImpl()
58 {
59     imbue(_SVGTests = new SVGTestsImpl());
60     imbue(_SVGLangSpace = new SVGLangSpaceImpl());
61     imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl());
62     imbue(_SVGStylable = new SVGStylableImpl());
63     imbue(_SVGTransformable = new SVGTransformableImpl());
64     imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl());
65 }
68 //from SVGTests
69 private SVGTestsImpl _SVGTests;
70 public SVGStringList getRequiredFeatures()
71    { return _SVGTests.getRequiredFeatures(); }
72 public SVGStringList getRequiredExtensions()
73    { return _SVGTests.getRequiredExtensions(); }
74 public SVGStringList getSystemLanguage()
75    { return _SVGTests.getSystemLanguage(); }
76 public boolean hasExtension (String extension)
77    { return _SVGTests.hasExtension(extension); }
78 //end SVGTests
80 //from SVGLangSpace
81 private SVGLangSpaceImpl _SVGLangSpace;
82 public String getXMLlang()
83     { return _SVGLangSpace.getXMLlang(); }
84 public void setXMLlang(String xmllang)
85                        throws DOMException
86     { _SVGLangSpace.setXMLlang(xmllang); }
87 public String getXMLspace()
88     { return _SVGLangSpace.getXMLspace(); }
89 public void setXMLspace(String xmlspace)
90                        throws DOMException
91     { _SVGLangSpace.setXMLspace(xmlspace); }
92 //end SVGLangSpace
94 //from SVGExternalResourcesRequired
95 private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired;
96 public SVGAnimatedBoolean getExternalResourcesRequired()
97     { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); }
98 //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
110 //from SVGTransformable
111 private SVGTransformableImpl _SVGTransformable;
112 public SVGAnimatedTransformList getTransform()
113     { return _SVGTransformable.getTransform(); }
114 //end SVGTransformable
116 //from SVGLocatable (from SVGTransformable)
117 public SVGElement getNearestViewportElement()
118     { return _SVGTransformable.getNearestViewportElement(); }
119 public SVGElement getFarthestViewportElement()
120     { return _SVGTransformable.getFarthestViewportElement(); }
121 public SVGRect getBBox()
122     { return _SVGTransformable.getBBox(); }
123 public SVGMatrix getCTM()
124     { return _SVGTransformable.getCTM(); }
125 public SVGMatrix getScreenCTM()
126     { return _SVGTransformable.getScreenCTM(); }
127 public SVGMatrix getTransformToElement (SVGElement element)
128                   throws SVGException
129     { return _SVGTransformable.getTransformToElement(element); }
130 //end SVGLocatable
132 //from EventTarget
133 private org.inkscape.dom.events.EventTargetImpl _EventTarget;
134 public void addEventListener(String type,
135                              EventListener listener,
136                              boolean useCapture)
137     { _EventTarget.addEventListener(type, listener, useCapture); }
138 public void removeEventListener(String type,
139                                 EventListener listener,
140                                 boolean useCapture)
141     { _EventTarget.removeEventListener(type, listener, useCapture); }
142 public boolean dispatchEvent(Event evt)
143                              throws EventException
144     { return _EventTarget.dispatchEvent(evt); }
145 public void addEventListenerNS(String namespaceURI,
146                                String type,
147                                EventListener listener,
148                                boolean useCapture,
149                                Object evtGroup)
150     { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); }
151 public void removeEventListenerNS(String namespaceURI,
152                                   String type,
153                                   EventListener listener,
154                                   boolean useCapture)
155     { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); }
156 public boolean willTriggerNS(String namespaceURI,
157                              String type)
158     { return _EventTarget.willTriggerNS(namespaceURI, type); }
159 public boolean hasEventListenerNS(String namespaceURI,
160                                   String type)
161     { return _EventTarget.hasEventListenerNS(namespaceURI, type); }
162 //end EventTarget