Code

8b721d8e3fc55eebebd5a39c037b1d680849d148
[inkscape.git] / src / bind / java / org / inkscape / dom / svg / SVGRectElementImpl.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  */
29 package org.inkscape.dom.svg;
31 import org.w3c.dom.DOMException;
33 import org.w3c.dom.svg.*;
35 import org.w3c.dom.css.CSSStyleDeclaration;
36 import org.w3c.dom.css.CSSValue;
38 import org.w3c.dom.events.Event;
39 import org.w3c.dom.events.EventTarget;
40 import org.w3c.dom.events.EventException;
41 import org.w3c.dom.events.EventListener;
45 public class SVGRectElementImpl
46        extends
47                SVGElementImpl
48                //SVGTests,
49                //SVGLangSpace,
50                //SVGExternalResourcesRequired,
51                //SVGStylable,
52                //SVGTransformable,
53                //EventTarget
54        implements org.w3c.dom.svg.SVGRectElement
55 {
56 //from SVGTests
57 public native SVGStringList getRequiredFeatures( );
58 public native SVGStringList getRequiredExtensions( );
59 public native SVGStringList getSystemLanguage( );
60 public native boolean hasExtension ( String extension );
61 //end SVGTests
63 //from SVGLangSpace
64 public native String getXMLlang( );
65 public native void setXMLlang( String xmllang )
66                        throws DOMException;
67 public native String getXMLspace( );
68 public native void setXMLspace( String xmlspace )
69                        throws DOMException;
70 //end SVGLangSpace
72 //from SVGExternalResourcesRequired
73 public native SVGAnimatedBoolean getExternalResourcesRequired( );
74 //end SVGExternalResourcesRequired
76 //from SVGStylable
77 public native SVGAnimatedString getClassName( );
78 public native CSSStyleDeclaration getStyle( );
79 public native CSSValue getPresentationAttribute ( String name );
80 //end SVGStylable
82 //from SVGTransformable
83 public native SVGAnimatedTransformList getTransform( );
84 //end SVGTransformable
86 //from SVGLocatable (from SVGTransformable)
87 public native SVGElement getNearestViewportElement( );
88 public native SVGElement getFarthestViewportElement( );
90 public native SVGRect   getBBox (  );
91 public native SVGMatrix getCTM (  );
92 public native SVGMatrix getScreenCTM (  );
93 public native SVGMatrix getTransformToElement ( SVGElement element )
94                   throws SVGException;
95 //end SVGLocatable
97 //from EventTarget
98 public native void addEventListener(String type,
99                              EventListener listener,
100                              boolean useCapture);
101 public native void removeEventListener(String type,
102                                 EventListener listener,
103                                 boolean useCapture);
104 public native boolean dispatchEvent(Event evt)
105                              throws EventException;
106 public native void addEventListenerNS(String namespaceURI,
107                                String type,
108                                EventListener listener,
109                                boolean useCapture,
110                                Object evtGroup);
111 public native void removeEventListenerNS(String namespaceURI,
112                                   String type,
113                                   EventListener listener,
114                                   boolean useCapture);
115 public native boolean willTriggerNS(String namespaceURI,
116                              String type);
117 public native boolean hasEventListenerNS(String namespaceURI,
118                                   String type);
119 //end EventTarget
121 public native SVGAnimatedLength getX( );
122 public native SVGAnimatedLength getY( );
123 public native SVGAnimatedLength getWidth( );
124 public native SVGAnimatedLength getHeight( );
125 public native SVGAnimatedLength getRx( );
126 public native SVGAnimatedLength getRy( );