Code

Finished multiple inheritance delegation
[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 {
59 public SVGPatternElementImpl()
60 {
61     imbue(_SVGURIReference = new SVGURIReferenceImpl());
62     imbue(_SVGTests = new SVGTestsImpl());
63     imbue(_SVGLangSpace = new SVGLangSpaceImpl());
64     imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl());
65     imbue(_SVGStylable = new SVGStylableImpl());
66     imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl());
67 }
70 //from SVGURIReference
71 private SVGURIReferenceImpl _SVGURIReference;
72 public SVGAnimatedString getHref()
73     { return _SVGURIReference.getHref(); }
74 //end SVGURIReference
76 //from SVGTests
77 private SVGTestsImpl _SVGTests;
78 public SVGStringList getRequiredFeatures()
79    { return _SVGTests.getRequiredFeatures(); }
80 public SVGStringList getRequiredExtensions()
81    { return _SVGTests.getRequiredExtensions(); }
82 public SVGStringList getSystemLanguage()
83    { return _SVGTests.getSystemLanguage(); }
84 public boolean hasExtension (String extension)
85    { return _SVGTests.hasExtension(extension); }
86 //end SVGTests
88 //from SVGLangSpace
89 private SVGLangSpaceImpl _SVGLangSpace;
90 public String getXMLlang()
91     { return _SVGLangSpace.getXMLlang(); }
92 public void setXMLlang(String xmllang)
93                        throws DOMException
94     { _SVGLangSpace.setXMLlang(xmllang); }
95 public String getXMLspace()
96     { return _SVGLangSpace.getXMLspace(); }
97 public void setXMLspace(String xmlspace)
98                        throws DOMException
99     { _SVGLangSpace.setXMLspace(xmlspace); }
100 //end SVGLangSpace
102 //from SVGExternalResourcesRequired
103 private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired;
104 public SVGAnimatedBoolean getExternalResourcesRequired()
105     { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); }
106 //end SVGExternalResourcesRequired
108 //from SVGStylable
109 private SVGStylableImpl _SVGStylable;
110 public SVGAnimatedString getClassName()
111     { return _SVGStylable.getClassName(); }
112 public CSSStyleDeclaration getStyle()
113     { return _SVGStylable.getStyle(); }
114 public CSSValue getPresentationAttribute(String name)
115     { return _SVGStylable.getPresentationAttribute(name); }
116 //end SVGStylable
118 //from SVGFitToViewBox
119 SVGFitToViewBoxImpl _SVGFitToViewBox;
120 public SVGAnimatedRect getViewBox()
121     { return _SVGFitToViewBox.getViewBox(); }
122 public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio()
123     { return _SVGFitToViewBox.getPreserveAspectRatio(); }
124 //end SVGFitToViewBox
128 public native SVGAnimatedEnumeration   getPatternUnits( );
129 public native SVGAnimatedEnumeration   getPatternContentUnits( );
130 public native SVGAnimatedTransformList getPatternTransform( );
131 public native SVGAnimatedLength        getX( );
132 public native SVGAnimatedLength        getY( );
133 public native SVGAnimatedLength        getWidth( );
134 public native SVGAnimatedLength        getHeight( );