[inkscape.git] / trunk / src / bind / java / org / inkscape / dom / svg / SVGGlyphRefElementImpl.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;
40 public class SVGGlyphRefElementImpl
41 extends
42 SVGElementImpl
43 //SVGURIReference,
44 //SVGStylable
45 implements org.w3c.dom.svg.SVGGlyphRefElement
46 {
47 public SVGGlyphRefElementImpl()
48 {
49 imbue(_SVGURIReference = new SVGURIReferenceImpl());
50 imbue(_SVGStylable = new SVGStylableImpl());
51 }
54 //from SVGURIReference
55 private SVGURIReferenceImpl _SVGURIReference;
56 public SVGAnimatedString getHref()
57 { return _SVGURIReference.getHref(); }
58 //end SVGURIReference
60 //from SVGStylable
61 private SVGStylableImpl _SVGStylable;
62 public SVGAnimatedString getClassName()
63 { return _SVGStylable.getClassName(); }
64 public CSSStyleDeclaration getStyle()
65 { return _SVGStylable.getStyle(); }
66 public CSSValue getPresentationAttribute(String name)
67 { return _SVGStylable.getPresentationAttribute(name); }
68 //end SVGStylable
72 public native String getGlyphRef( );
73 public native void setGlyphRef( String glyphRef )
74 throws DOMException;
75 public native String getFormat( );
76 public native void setFormat( String format )
77 throws DOMException;
78 public native float getX( );
79 public native void setX( float x )
80 throws DOMException;
81 public native float getY( );
82 public native void setY( float y )
83 throws DOMException;
84 public native float getDx( );
85 public native void setDx( float dx )
86 throws DOMException;
87 public native float getDy( );
88 public native void setDy( float dy )
89 throws DOMException;
90 }