Code

675868424b478d85d269776eb61551c483106620
[inkscape.git] / src / bind / java / org / inkscape / dom / svg / SVGPatternElementImpl.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;
33 import org.w3c.dom.DOMException;
35 import org.w3c.dom.svg.*;
37 import org.w3c.dom.css.CSSStyleDeclaration;
38 import org.w3c.dom.css.CSSValue;
40 import org.w3c.dom.events.Event;
41 import org.w3c.dom.events.EventTarget;
42 import org.w3c.dom.events.EventException;
43 import org.w3c.dom.events.EventListener;
46 public class SVGPatternElementImpl
47        extends
48                SVGElementImpl
49                //SVGURIReference,
50                //SVGTests,
51                //SVGLangSpace,
52                //SVGExternalResourcesRequired,
53                //SVGStylable,
54                //SVGFitToViewBox,
55                //SVGUnitTypes
56        implements org.w3c.dom.svg.SVGPatternElement
57 {
58 //from SVGURIReference
59 public native SVGAnimatedString getHref( );
60 //end SVGURIReference
62 //from SVGTests
63 public native SVGStringList getRequiredFeatures( );
64 public native SVGStringList getRequiredExtensions( );
65 public native SVGStringList getSystemLanguage( );
66 public native boolean hasExtension ( String extension );
67 //end SVGTests
69 //from SVGLangSpace
70 public native String getXMLlang( );
71 public native void setXMLlang( String xmllang )
72                        throws DOMException;
73 public native String getXMLspace( );
74 public native void setXMLspace( String xmlspace )
75                        throws DOMException;
76 //end SVGLangSpace
78 //from SVGExternalResourcesRequired
79 public native SVGAnimatedBoolean getExternalResourcesRequired( );
80 //end SVGExternalResourcesRequired
82 //from SVGStylable
83 public native SVGAnimatedString getClassName( );
84 public native CSSStyleDeclaration getStyle( );
85 public native CSSValue getPresentationAttribute ( String name );
86 //end SVGStylable
88 //from SVGTransformable
89 public native SVGAnimatedTransformList getTransform( );
90 //end SVGTransformable
92 //from SVGLocatable (from SVGTransformable)
93 public native SVGElement getNearestViewportElement( );
94 public native SVGElement getFarthestViewportElement( );
96 public native SVGRect   getBBox (  );
97 public native SVGMatrix getCTM (  );
98 public native SVGMatrix getScreenCTM (  );
99 public native SVGMatrix getTransformToElement ( SVGElement element )
100                   throws SVGException;
101 //end SVGLocatable
103 //from EventTarget
104 public native void addEventListener(String type,
105                              EventListener listener,
106                              boolean useCapture);
107 public native void removeEventListener(String type,
108                                 EventListener listener,
109                                 boolean useCapture);
110 public native boolean dispatchEvent(Event evt)
111                              throws EventException;
112 public native void addEventListenerNS(String namespaceURI,
113                                String type,
114                                EventListener listener,
115                                boolean useCapture,
116                                Object evtGroup);
117 public native void removeEventListenerNS(String namespaceURI,
118                                   String type,
119                                   EventListener listener,
120                                   boolean useCapture);
121 public native boolean willTriggerNS(String namespaceURI,
122                              String type);
123 public native boolean hasEventListenerNS(String namespaceURI,
124                                   String type);
125 //end EventTarget
127 //from SVGFitToViewBox
128 public native SVGAnimatedRect getViewBox( );
129 public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( );
130 //end SVGFitToViewBox
133 public native SVGAnimatedEnumeration   getPatternUnits( );
134 public native SVGAnimatedEnumeration   getPatternContentUnits( );
135 public native SVGAnimatedTransformList getPatternTransform( );
136 public native SVGAnimatedLength        getX( );
137 public native SVGAnimatedLength        getY( );
138 public native SVGAnimatedLength        getWidth( );
139 public native SVGAnimatedLength        getHeight( );