blob: 78336e11a0848612128585d3a5c93b3287c71079 [file] [log] [blame]
/*
Copyright 2000-2003 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.batik.dom.svg;
/**
* This class provides an implementation of the {@link
* org.w3c.dom.svg.SVGAnimatedLength} interface.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
* @version $Id$
*/
public class SVGOMAnimatedLength extends AbstractSVGAnimatedLength {
/**
* The default value if the attribute is not specified.
*/
protected String defaultValue;
/**
* Creates a new SVGAnimatedLength.
* @param elt The associated element.
* @param ns The attribute's namespace URI.
* @param ln The attribute's local name.
* @param def The default value if the attribute is not specified.
* @param dir The length's direction.
*/
public SVGOMAnimatedLength(AbstractElement elt,
String ns,
String ln,
String def,
short dir) {
super(elt, ns, ln, dir);
defaultValue = def;
}
/**
* Returns the default value to use when the associated attribute
* was not specified.
*/
protected String getDefaultValue() {
return defaultValue;
}
}