KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > dom > svg > SVGOMLength


1 /*
2
3    Copyright 2000-2001,2003 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.dom.svg;
19
20 /**
21  * Default implementation of SVGLength.
22  *
23  * This implementation is not linked to any
24  * attribute in the Document. It is used
25  * by the root element to return a default SVGLength.
26  *
27  * @see org.w3c.dom.svg.SVGSVGElement#createSVGLength()
28  *
29  * @author nicolas.socheleau@bitflash.com
30  * @version $Id: SVGOMLength.java,v 1.12 2004/08/18 07:13:17 vhardy Exp $
31  */

32 public class SVGOMLength extends AbstractSVGLength {
33
34     /**
35      * Element associated to this length.
36      */

37     protected AbstractElement element;
38
39     /**
40      * Default constructor.
41      *
42      * The direction of this length is undefined
43      * and this length is not associated to any
44      * attribute.
45      */

46     public SVGOMLength(AbstractElement elt){
47         super(OTHER_LENGTH);
48         element = elt;
49     }
50
51     /**
52      */

53     protected SVGOMElement getAssociatedElement(){
54         return (SVGOMElement)element;
55     }
56
57 }
58
Popular Tags