Code

updated spanish.nsh and inkscape.nsi to reflect latest file-changes
[inkscape.git] / trunk / src / bind / java / org / inkscape / dom / svg / SVGPolylineElementImpl.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 SVGPolylineElementImpl
46        extends
47                SVGElementImpl
48                //SVGTests,
49                //SVGLangSpace,
50                //SVGExternalResourcesRequired,
51                //SVGStylable,
52                //SVGTransformable,
53                //EventTarget,
54                //SVGAnimatedPoints
55        implements org.w3c.dom.svg.SVGPolylineElement
56 {
58 public SVGPolylineElementImpl()
59 {
60     imbue(_SVGTests = new SVGTestsImpl());
61     imbue(_SVGLangSpace = new SVGLangSpaceImpl());
62     imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl());
63     imbue(_SVGStylable = new SVGStylableImpl());
64     imbue(_SVGTransformable = new SVGTransformableImpl());
65     imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl());
66     imbue(_SVGAnimatedPoints = new SVGAnimatedPointsImpl());
67 }
70 //from SVGTests
71 private SVGTestsImpl _SVGTests;
72 public SVGStringList getRequiredFeatures()
73    { return _SVGTests.getRequiredFeatures(); }
74 public SVGStringList getRequiredExtensions()
75    { return _SVGTests.getRequiredExtensions(); }
76 public SVGStringList getSystemLanguage()
77    { return _SVGTests.getSystemLanguage(); }
78 public boolean hasExtension (String extension)
79    { return _SVGTests.hasExtension(extension); }
80 //end SVGTests
82 //from SVGLangSpace
83 private SVGLangSpaceImpl _SVGLangSpace;
84 public String getXMLlang()
85     { return _SVGLangSpace.getXMLlang(); }
86 public void setXMLlang(String xmllang)
87                        throws DOMException
88     { _SVGLangSpace.setXMLlang(xmllang); }
89 public String getXMLspace()
90     { return _SVGLangSpace.getXMLspace(); }
91 public void setXMLspace(String xmlspace)
92                        throws DOMException
93     { _SVGLangSpace.setXMLspace(xmlspace); }
94 //end SVGLangSpace
96 //from SVGExternalResourcesRequired
97 private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired;
98 public SVGAnimatedBoolean getExternalResourcesRequired()
99     { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); }
100 //end SVGExternalResourcesRequired
102 //from SVGStylable
103 private SVGStylableImpl _SVGStylable;
104 public SVGAnimatedString getClassName()
105     { return _SVGStylable.getClassName(); }
106 public CSSStyleDeclaration getStyle()
107     { return _SVGStylable.getStyle(); }
108 public CSSValue getPresentationAttribute(String name)
109     { return _SVGStylable.getPresentationAttribute(name); }
110 //end SVGStylable
112 //from SVGTransformable
113 private SVGTransformableImpl _SVGTransformable;
114 public SVGAnimatedTransformList getTransform()
115     { return _SVGTransformable.getTransform(); }
116 //end SVGTransformable
118 //from SVGLocatable (from SVGTransformable)
119 public SVGElement getNearestViewportElement()
120     { return _SVGTransformable.getNearestViewportElement(); }
121 public SVGElement getFarthestViewportElement()
122     { return _SVGTransformable.getFarthestViewportElement(); }
123 public SVGRect getBBox()
124     { return _SVGTransformable.getBBox(); }
125 public SVGMatrix getCTM()
126     { return _SVGTransformable.getCTM(); }
127 public SVGMatrix getScreenCTM()
128     { return _SVGTransformable.getScreenCTM(); }
129 public SVGMatrix getTransformToElement (SVGElement element)
130                   throws SVGException
131     { return _SVGTransformable.getTransformToElement(element); }
132 //end SVGLocatable
134 //from EventTarget
135 private org.inkscape.dom.events.EventTargetImpl _EventTarget;
136 public void addEventListener(String type,
137                              EventListener listener,
138                              boolean useCapture)
139     { _EventTarget.addEventListener(type, listener, useCapture); }
140 public void removeEventListener(String type,
141                                 EventListener listener,
142                                 boolean useCapture)
143     { _EventTarget.removeEventListener(type, listener, useCapture); }
144 public boolean dispatchEvent(Event evt)
145                              throws EventException
146     { return _EventTarget.dispatchEvent(evt); }
147 public void addEventListenerNS(String namespaceURI,
148                                String type,
149                                EventListener listener,
150                                boolean useCapture,
151                                Object evtGroup)
152     { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); }
153 public void removeEventListenerNS(String namespaceURI,
154                                   String type,
155                                   EventListener listener,
156                                   boolean useCapture)
157     { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); }
158 public boolean willTriggerNS(String namespaceURI,
159                              String type)
160     { return _EventTarget.willTriggerNS(namespaceURI, type); }
161 public boolean hasEventListenerNS(String namespaceURI,
162                                   String type)
163     { return _EventTarget.hasEventListenerNS(namespaceURI, type); }
164 //end EventTarget
167 //from SVGAnimatedPoints
168 SVGAnimatedPointsImpl _SVGAnimatedPoints;
169 public SVGPointList getPoints()
170     { return _SVGAnimatedPoints.getPoints(); }
171 public SVGPointList getAnimatedPoints()
172     { return _SVGAnimatedPoints.getAnimatedPoints(); }
173 //end SVGAnimatedPoints