e4c1dc16000b052fb0efe1e4a372a8aef80cd6ba
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 */
29 package org.inkscape.dom.svg;
31 import org.w3c.dom.DOMException;
32 import org.w3c.dom.events.EventTarget;
33 import org.w3c.dom.smil.ElementTimeControl;
34 import org.w3c.dom.svg.*;
36 import org.w3c.dom.events.EventException;
37 import org.w3c.dom.events.Event;
38 import org.w3c.dom.events.EventListener;
42 public class SVGAnimationElementImpl
43 extends
44 SVGElementImpl
45 //SVGTests,
46 //SVGExternalResourcesRequired,
47 //ElementTimeControl,
48 //EventTarget
49 implements org.w3c.dom.svg.SVGAnimationElement
50 {
51 //from SVGTests
52 public native SVGStringList getRequiredFeatures( );
53 public native SVGStringList getRequiredExtensions( );
54 public native SVGStringList getSystemLanguage( );
55 public native boolean hasExtension ( String extension );
56 //end SVGTests
58 //from SVGExternalResourcesRequired
59 public native SVGAnimatedBoolean getExternalResourcesRequired( );
60 //end SVGExternalResourcesRequired
62 //from ElementTimeControl
63 public native boolean beginElement()
64 throws DOMException;
65 public native boolean beginElementAt(float offset)
66 throws DOMException;
67 public native boolean endElement()
68 throws DOMException;
69 public native boolean endElementAt(float offset)
70 throws DOMException;
71 //end ElementTimeControl
74 //from EventTarget
75 public native void addEventListener(String type,
76 EventListener listener,
77 boolean useCapture);
78 public native void removeEventListener(String type,
79 EventListener listener,
80 boolean useCapture);
81 public native boolean dispatchEvent(Event evt)
82 throws EventException;
83 public native void addEventListenerNS(String namespaceURI,
84 String type,
85 EventListener listener,
86 boolean useCapture,
87 Object evtGroup);
88 public native void removeEventListenerNS(String namespaceURI,
89 String type,
90 EventListener listener,
91 boolean useCapture);
92 public native boolean willTriggerNS(String namespaceURI,
93 String type);
94 public native boolean hasEventListenerNS(String namespaceURI,
95 String type);
96 //end EventTarget
99 public native SVGElement getTargetElement( );
101 public native float getStartTime ( );
103 public native float getCurrentTime ( );
105 public native float getSimpleDuration ( )
106 throws DOMException;
107 }