95aca80186d4cc8e4dd18ad29c765dbfda17e54d
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 SVGSymbolElementImpl
47 extends
48 SVGElementImpl
49 //SVGLangSpace,
50 //SVGExternalResourcesRequired,
51 //SVGStylable,
52 //SVGFitToViewBox,
53 //EventTarget
54 implements org.w3c.dom.svg.SVGSymbolElement
55 {
56 //from SVGLangSpace
57 public native String getXMLlang( );
58 public native void setXMLlang( String xmllang )
59 throws DOMException;
60 public native String getXMLspace( );
61 public native void setXMLspace( String xmlspace )
62 throws DOMException;
63 //end SVGLangSpace
65 //from SVGExternalResourcesRequired
66 public native SVGAnimatedBoolean getExternalResourcesRequired( );
67 //end SVGExternalResourcesRequired
69 //from SVGStylable
70 public native SVGAnimatedString getClassName( );
71 public native CSSStyleDeclaration getStyle( );
72 public native CSSValue getPresentationAttribute ( String name );
73 //end SVGStylable
75 //from SVGFitToViewBox
76 public native SVGAnimatedRect getViewBox( );
77 public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( );
78 //end SVGFitToViewBox
80 //from EventTarget
81 public native void addEventListener(String type,
82 EventListener listener,
83 boolean useCapture);
84 public native void removeEventListener(String type,
85 EventListener listener,
86 boolean useCapture);
87 public native boolean dispatchEvent(Event evt)
88 throws EventException;
89 public native void addEventListenerNS(String namespaceURI,
90 String type,
91 EventListener listener,
92 boolean useCapture,
93 Object evtGroup);
94 public native void removeEventListenerNS(String namespaceURI,
95 String type,
96 EventListener listener,
97 boolean useCapture);
98 public native boolean willTriggerNS(String namespaceURI,
99 String type);
100 public native boolean hasEventListenerNS(String namespaceURI,
101 String type);
102 //end EventTarget
105 }