org.apache.batik.dom.svg
Class AbstractSVGAnimatedLength.BaseSVGLength

java.lang.Object
  |
  +--org.apache.batik.dom.svg.AbstractSVGAnimatedLength.BaseSVGLength
All Implemented Interfaces:
SVGLength
Enclosing class:
AbstractSVGAnimatedLength

protected class AbstractSVGAnimatedLength.BaseSVGLength
extends java.lang.Object
implements SVGLength

This class represents the SVGLength returned by getBaseVal().


Inner Class Summary
protected  class AbstractSVGAnimatedLength.BaseSVGLength.DefaultContext
          To resolve the units.
 
Field Summary
protected  UnitProcessor.Context context
          The context used to resolve the units.
protected  short unitType
          The type of this length.
protected  boolean valid
          Whether this length is valid.
protected  float value
          The value of this length.
 
Fields inherited from interface org.w3c.dom.svg.SVGLength
SVG_LENGTHTYPE_CM, SVG_LENGTHTYPE_EMS, SVG_LENGTHTYPE_EXS, SVG_LENGTHTYPE_IN, SVG_LENGTHTYPE_MM, SVG_LENGTHTYPE_NUMBER, SVG_LENGTHTYPE_PC, SVG_LENGTHTYPE_PERCENTAGE, SVG_LENGTHTYPE_PT, SVG_LENGTHTYPE_PX, SVG_LENGTHTYPE_UNKNOWN
 
Constructor Summary
AbstractSVGAnimatedLength.BaseSVGLength()
          Creates a new BaseSVGLength.
 
Method Summary
 void convertToSpecifiedUnits(short unit)
          DOM: Implements SVGLength.convertToSpecifiedUnits(short).
 short getUnitType()
          DOM: Implements SVGLength.getUnitType().
 float getValue()
          DOM: Implements SVGLength.getValue().
 java.lang.String getValueAsString()
          DOM: Implements SVGLength.getValueAsString().
 float getValueInSpecifiedUnits()
          DOM: Implements SVGLength.getValueInSpecifiedUnits().
 void invalidate()
          Invalidates this length.
 void newValueSpecifiedUnits(short unit, float value)
          DOM: Implements SVGLength.newValueSpecifiedUnits(short,float).
protected  void resetAttribute()
          Resets the value of the associated attribute.
protected  void revalidate()
          Initializes the length, if needed.
 void setValue(float value)
          DOM: Implements SVGLength.setValue(float).
 void setValueAsString(java.lang.String value)
          DOM: Implements SVGLength.setValueAsString(String).
 void setValueInSpecifiedUnits(float value)
          DOM: Implements SVGLength.setValueInSpecifiedUnits(float).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unitType

protected short unitType
The type of this length.

value

protected float value
The value of this length.

valid

protected boolean valid
Whether this length is valid.

context

protected UnitProcessor.Context context
The context used to resolve the units.
Constructor Detail

AbstractSVGAnimatedLength.BaseSVGLength

public AbstractSVGAnimatedLength.BaseSVGLength()
Creates a new BaseSVGLength.
Method Detail

invalidate

public void invalidate()
Invalidates this length.

getUnitType

public short getUnitType()
DOM: Implements SVGLength.getUnitType().
Specified by:
getUnitType in interface SVGLength

getValue

public float getValue()
DOM: Implements SVGLength.getValue().
Specified by:
getValue in interface SVGLength

setValue

public void setValue(float value)
              throws DOMException
DOM: Implements SVGLength.setValue(float).
Specified by:
setValue in interface SVGLength

getValueInSpecifiedUnits

public float getValueInSpecifiedUnits()
DOM: Implements SVGLength.getValueInSpecifiedUnits().
Specified by:
getValueInSpecifiedUnits in interface SVGLength

setValueInSpecifiedUnits

public void setValueInSpecifiedUnits(float value)
                              throws DOMException
DOM: Implements SVGLength.setValueInSpecifiedUnits(float).
Specified by:
setValueInSpecifiedUnits in interface SVGLength

getValueAsString

public java.lang.String getValueAsString()
DOM: Implements SVGLength.getValueAsString().
Specified by:
getValueAsString in interface SVGLength

setValueAsString

public void setValueAsString(java.lang.String value)
                      throws DOMException
DOM: Implements SVGLength.setValueAsString(String).
Specified by:
setValueAsString in interface SVGLength

newValueSpecifiedUnits

public void newValueSpecifiedUnits(short unit,
                                   float value)
DOM: Implements SVGLength.newValueSpecifiedUnits(short,float).
Specified by:
newValueSpecifiedUnits in interface SVGLength

convertToSpecifiedUnits

public void convertToSpecifiedUnits(short unit)
DOM: Implements SVGLength.convertToSpecifiedUnits(short).
Specified by:
convertToSpecifiedUnits in interface SVGLength

resetAttribute

protected void resetAttribute()
Resets the value of the associated attribute.

revalidate

protected void revalidate()
Initializes the length, if needed.


Copyright © 2002 Apache Software Foundation. All Rights Reserved.