|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.batik.dom.svg.AbstractSVGAnimatedLength.BaseSVGLength
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 |
protected short unitType
protected float value
protected boolean valid
protected UnitProcessor.Context context
| Constructor Detail |
public AbstractSVGAnimatedLength.BaseSVGLength()
| Method Detail |
public void invalidate()
public short getUnitType()
SVGLength.getUnitType().getUnitType in interface SVGLengthpublic float getValue()
SVGLength.getValue().getValue in interface SVGLength
public void setValue(float value)
throws DOMException
SVGLength.setValue(float).setValue in interface SVGLengthpublic float getValueInSpecifiedUnits()
SVGLength.getValueInSpecifiedUnits().getValueInSpecifiedUnits in interface SVGLength
public void setValueInSpecifiedUnits(float value)
throws DOMException
SVGLength.setValueInSpecifiedUnits(float).setValueInSpecifiedUnits in interface SVGLengthpublic java.lang.String getValueAsString()
SVGLength.getValueAsString().getValueAsString in interface SVGLength
public void setValueAsString(java.lang.String value)
throws DOMException
SVGLength.setValueAsString(String).setValueAsString in interface SVGLength
public void newValueSpecifiedUnits(short unit,
float value)
SVGLength.newValueSpecifiedUnits(short,float).newValueSpecifiedUnits in interface SVGLengthpublic void convertToSpecifiedUnits(short unit)
SVGLength.convertToSpecifiedUnits(short).convertToSpecifiedUnits in interface SVGLengthprotected void resetAttribute()
protected void revalidate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||