Code

Finished multiple inheritance delegation
[inkscape.git] / src / bind / java / org / inkscape / dom / svg / SVGMaskElementImpl.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;
39 public class SVGMaskElementImpl
40        extends
41                SVGElementImpl
42                //SVGTests,
43                //SVGLangSpace,
44                //SVGExternalResourcesRequired,
45                //SVGStylable,
46                //SVGUnitTypes
47        implements org.w3c.dom.svg.SVGMaskElement
48 {
50 public SVGMaskElementImpl()
51 {
52     imbue(_SVGTests = new SVGTestsImpl());
53     imbue(_SVGLangSpace = new SVGLangSpaceImpl());
54     imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl());
55     imbue(_SVGStylable = new SVGStylableImpl());
56 }
59 //from SVGTests
60 private SVGTestsImpl _SVGTests;
61 public SVGStringList getRequiredFeatures()
62    { return _SVGTests.getRequiredFeatures(); }
63 public SVGStringList getRequiredExtensions()
64    { return _SVGTests.getRequiredExtensions(); }
65 public SVGStringList getSystemLanguage()
66    { return _SVGTests.getSystemLanguage(); }
67 public boolean hasExtension (String extension)
68    { return _SVGTests.hasExtension(extension); }
69 //end SVGTests
71 //from SVGLangSpace
72 private SVGLangSpaceImpl _SVGLangSpace;
73 public String getXMLlang()
74     { return _SVGLangSpace.getXMLlang(); }
75 public void setXMLlang(String xmllang)
76                        throws DOMException
77     { _SVGLangSpace.setXMLlang(xmllang); }
78 public String getXMLspace()
79     { return _SVGLangSpace.getXMLspace(); }
80 public void setXMLspace(String xmlspace)
81                        throws DOMException
82     { _SVGLangSpace.setXMLspace(xmlspace); }
83 //end SVGLangSpace
85 //from SVGExternalResourcesRequired
86 private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired;
87 public SVGAnimatedBoolean getExternalResourcesRequired()
88     { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); }
89 //end SVGExternalResourcesRequired
91 //from SVGStylable
92 private SVGStylableImpl _SVGStylable;
93 public SVGAnimatedString getClassName()
94     { return _SVGStylable.getClassName(); }
95 public CSSStyleDeclaration getStyle()
96     { return _SVGStylable.getStyle(); }
97 public CSSValue getPresentationAttribute(String name)
98     { return _SVGStylable.getPresentationAttribute(name); }
99 //end SVGStylable
102 public native SVGAnimatedEnumeration getMaskUnits( );
103 public native SVGAnimatedEnumeration getMaskContentUnits( );
104 public native SVGAnimatedLength      getX( );
105 public native SVGAnimatedLength      getY( );
106 public native SVGAnimatedLength      getWidth( );
107 public native SVGAnimatedLength      getHeight( );