Code

updated spanish.nsh and inkscape.nsi to reflect latest file-changes
[inkscape.git] / trunk / src / bind / java / org / inkscape / dom / svg / SVGLineElementImpl.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;
46 public class SVGLineElementImpl
47        extends
48                SVGElementImpl
49                //SVGTests,
50                //SVGLangSpace,
51                //SVGExternalResourcesRequired,
52                //SVGStylable,
53                //SVGTransformable,
54                //EventTarget
55        implements org.w3c.dom.svg.SVGLineElement
56 {
58 public SVGLineElementImpl()
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 }
69 //from SVGTests
70 private SVGTestsImpl _SVGTests;
71 public SVGStringList getRequiredFeatures()
72    { return _SVGTests.getRequiredFeatures(); }
73 public SVGStringList getRequiredExtensions()
74    { return _SVGTests.getRequiredExtensions(); }
75 public SVGStringList getSystemLanguage()
76    { return _SVGTests.getSystemLanguage(); }
77 public boolean hasExtension (String extension)
78    { return _SVGTests.hasExtension(extension); }
79 //end SVGTests
81 //from SVGLangSpace
82 private SVGLangSpaceImpl _SVGLangSpace;
83 public String getXMLlang()
84     { return _SVGLangSpace.getXMLlang(); }
85 public void setXMLlang(String xmllang)
86                        throws DOMException
87     { _SVGLangSpace.setXMLlang(xmllang); }
88 public String getXMLspace()
89     { return _SVGLangSpace.getXMLspace(); }
90 public void setXMLspace(String xmlspace)
91                        throws DOMException
92     { _SVGLangSpace.setXMLspace(xmlspace); }
93 //end SVGLangSpace
95 //from SVGExternalResourcesRequired
96 private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired;
97 public SVGAnimatedBoolean getExternalResourcesRequired()
98     { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); }
99 //end SVGExternalResourcesRequired
101 //from SVGStylable
102 private SVGStylableImpl _SVGStylable;
103 public SVGAnimatedString getClassName()
104     { return _SVGStylable.getClassName(); }
105 public CSSStyleDeclaration getStyle()
106     { return _SVGStylable.getStyle(); }
107 public CSSValue getPresentationAttribute(String name)
108     { return _SVGStylable.getPresentationAttribute(name); }
109 //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 getX1( );
167 public native SVGAnimatedLength getY1( );
168 public native SVGAnimatedLength getX2( );
169 public native SVGAnimatedLength getY2( );