KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2
3    Copyright 2000-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 import org.apache.batik.dom.AbstractDocument;
21 import org.w3c.dom.svg.SVGAnimatedLength;
22 import org.w3c.dom.svg.SVGAnimatedString;
23 import org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes;
24
25 /**
26  * This class represents a SVGElement with support for standard filter
27  * attributes.
28  *
29  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
30  * @version $Id: SVGOMFilterPrimitiveStandardAttributes.java,v 1.9 2004/08/18 07:13:16 vhardy Exp $
31  */

32 public abstract class SVGOMFilterPrimitiveStandardAttributes
33     extends SVGStylableElement
34     implements SVGFilterPrimitiveStandardAttributes {
35
36     /**
37      * Creates a new SVGOMFilterPrimitiveStandardAttributes object.
38      */

39     protected SVGOMFilterPrimitiveStandardAttributes() {
40     }
41
42     /**
43      * Creates a new SVGOMFilterPrimitiveStandardAttributes object.
44      * @param prefix The namespace prefix.
45      * @param owner The owner document.
46      */

47     protected SVGOMFilterPrimitiveStandardAttributes(String JavaDoc prefix,
48                                                      AbstractDocument owner) {
49         super(prefix, owner);
50     }
51
52     /**
53      * <b>DOM</b>: Implements {@link
54      * org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes#getX()}.
55      */

56     public SVGAnimatedLength getX() {
57         return getAnimatedLengthAttribute
58             (null, SVG_X_ATTRIBUTE, SVG_FILTER_PRIMITIVE_X_DEFAULT_VALUE,
59              SVGOMAnimatedLength.HORIZONTAL_LENGTH);
60     }
61
62     /**
63      * <b>DOM</b>: Implements {@link
64      * org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes#getY()}.
65      */

66     public SVGAnimatedLength getY() {
67         return getAnimatedLengthAttribute
68             (null, SVG_Y_ATTRIBUTE, SVG_FILTER_PRIMITIVE_Y_DEFAULT_VALUE,
69              SVGOMAnimatedLength.VERTICAL_LENGTH);
70     }
71
72     /**
73      * <b>DOM</b>: Implements {@link
74      * org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes#getWidth()}.
75      */

76     public SVGAnimatedLength getWidth() {
77         return getAnimatedLengthAttribute
78             (null, SVG_WIDTH_ATTRIBUTE,
79              SVG_FILTER_PRIMITIVE_WIDTH_DEFAULT_VALUE,
80              SVGOMAnimatedLength.HORIZONTAL_LENGTH);
81     }
82
83     /**
84      * <b>DOM</b>: Implements {@link
85      * org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes#getHeight()}.
86      */

87     public SVGAnimatedLength getHeight() {
88         return getAnimatedLengthAttribute
89             (null, SVG_HEIGHT_ATTRIBUTE,
90              SVG_FILTER_PRIMITIVE_HEIGHT_DEFAULT_VALUE,
91              SVGOMAnimatedLength.VERTICAL_LENGTH);
92     }
93
94     /**
95      * <b>DOM</b>: Implements {@link
96      * org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes#getResult()}.
97      */

98     public SVGAnimatedString getResult() {
99         return getAnimatedStringAttribute(null, SVG_RESULT_ATTRIBUTE);
100     }
101 }
102
Popular Tags