Code

More multiple inheritance delegation. 53 files to go.
[inkscape.git] / src / bind / java / org / inkscape / dom / svg / SVGClipPathElementImpl.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;
32 import org.w3c.dom.DOMException;
34 import org.w3c.dom.svg.*;
36 import org.w3c.dom.css.CSSStyleDeclaration;
37 import org.w3c.dom.css.CSSValue;
42 public class SVGClipPathElementImpl
43        extends
44                SVGElementImpl
45                //SVGTests,
46                //SVGLangSpace,
47                //SVGExternalResourcesRequired,
48                //SVGStylable,
49                //SVGTransformable,
50                //SVGUnitTypes
51         implements org.w3c.dom.svg.SVGClipPathElement
52 {
54 public SVGClipPathElementImpl()
55 {
56     imbue(_SVGTests = new SVGTestsImpl());
57     imbue(_SVGLangSpace = new SVGLangSpaceImpl());
58     imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl());
59     imbue(_SVGStylable = new SVGStylableImpl());
60     imbue(_SVGTransformable = new SVGTransformableImpl());
61 }
63 //from SVGTests
64 private SVGTestsImpl _SVGTests;
65 public SVGStringList getRequiredFeatures()
66    { return _SVGTests.getRequiredFeatures(); }
67 public SVGStringList getRequiredExtensions()
68    { return _SVGTests.getRequiredExtensions(); }
69 public SVGStringList getSystemLanguage()
70    { return _SVGTests.getSystemLanguage(); }
71 public boolean hasExtension (String extension)
72    { return _SVGTests.hasExtension(extension); }
73 //end SVGTests
75 //from SVGLangSpace
76 private SVGLangSpaceImpl _SVGLangSpace;
77 public String getXMLlang()
78     { return _SVGLangSpace.getXMLlang(); }
79 public void setXMLlang(String xmllang)
80                        throws DOMException
81     { _SVGLangSpace.setXMLlang(xmllang); }
82 public String getXMLspace()
83     { return _SVGLangSpace.getXMLspace(); }
84 public void setXMLspace(String xmlspace)
85                        throws DOMException
86     { _SVGLangSpace.setXMLspace(xmlspace); }
87 //end SVGLangSpace
89 //from SVGExternalResourcesRequired
90 private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired;
91 public SVGAnimatedBoolean getExternalResourcesRequired()
92     { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); }
93 //end SVGExternalResourcesRequired
96 //from SVGStylable
97 private SVGStylableImpl _SVGStylable;
98 public SVGAnimatedString getClassName()
99     { return _SVGStylable.getClassName(); }
100 public CSSStyleDeclaration getStyle()
101     { return _SVGStylable.getStyle(); }
102 public CSSValue getPresentationAttribute(String name)
103     { return _SVGStylable.getPresentationAttribute(name); }
104 //end SVGStylable
107 //from SVGTransformable
108 private SVGTransformableImpl _SVGTransformable;
109 public SVGAnimatedTransformList getTransform()
110     { return _SVGTransformable.getTransform(); }
111 //end SVGTransformable
113 //from SVGLocatable (from SVGTransformable)
114 public SVGElement getNearestViewportElement()
115     { return _SVGTransformable.getNearestViewportElement(); }
116 public SVGElement getFarthestViewportElement()
117     { return _SVGTransformable.getFarthestViewportElement(); }
118 public SVGRect getBBox()
119     { return _SVGTransformable.getBBox(); }
120 public SVGMatrix getCTM()
121     { return _SVGTransformable.getCTM(); }
122 public SVGMatrix getScreenCTM()
123     { return _SVGTransformable.getScreenCTM(); }
124 public SVGMatrix getTransformToElement (SVGElement element)
125                   throws SVGException
126     { return _SVGTransformable.getTransformToElement(element); }
127 //end SVGLocatable
132 public native SVGAnimatedEnumeration getClipPathUnits( );