76ce2cc41380e4b09022ea9a74c13abf64870df8
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 {
57 //from SVGURIReference
58 public native SVGAnimatedString getHref( );
59 //end SVGURIReference
61 //from SVGTests
62 public native SVGStringList getRequiredFeatures( );
63 public native SVGStringList getRequiredExtensions( );
64 public native SVGStringList getSystemLanguage( );
65 public native boolean hasExtension ( String extension );
66 //end SVGTests
68 //from SVGLangSpace
69 public native String getXMLlang( );
70 public native void setXMLlang( String xmllang )
71 throws DOMException;
72 public native String getXMLspace( );
73 public native void setXMLspace( String xmlspace )
74 throws DOMException;
75 //end SVGLangSpace
77 //from SVGExternalResourcesRequired
78 public native SVGAnimatedBoolean getExternalResourcesRequired( );
79 //end SVGExternalResourcesRequired
81 //from SVGStylable
82 public native SVGAnimatedString getClassName( );
83 public native CSSStyleDeclaration getStyle( );
84 public native CSSValue getPresentationAttribute ( String name );
85 //end SVGStylable
87 //from SVGTransformable
88 public native SVGAnimatedTransformList getTransform( );
89 //end SVGTransformable
91 //from SVGLocatable (from SVGTransformable)
92 public native SVGElement getNearestViewportElement( );
93 public native SVGElement getFarthestViewportElement( );
95 public native SVGRect getBBox ( );
96 public native SVGMatrix getCTM ( );
97 public native SVGMatrix getScreenCTM ( );
98 public native SVGMatrix getTransformToElement ( SVGElement element )
99 throws SVGException;
100 //end SVGLocatable
102 //from EventTarget
103 public native void addEventListener(String type,
104 EventListener listener,
105 boolean useCapture);
106 public native void removeEventListener(String type,
107 EventListener listener,
108 boolean useCapture);
109 public native boolean dispatchEvent(Event evt)
110 throws EventException;
111 public native void addEventListenerNS(String namespaceURI,
112 String type,
113 EventListener listener,
114 boolean useCapture,
115 Object evtGroup);
116 public native void removeEventListenerNS(String namespaceURI,
117 String type,
118 EventListener listener,
119 boolean useCapture);
120 public native boolean willTriggerNS(String namespaceURI,
121 String type);
122 public native boolean hasEventListenerNS(String namespaceURI,
123 String type);
124 //end EventTarget
127 public native SVGAnimatedLength getX1( );
128 public native SVGAnimatedLength getY1( );
129 public native SVGAnimatedLength getX2( );
130 public native SVGAnimatedLength getY2( );
131 }