protected class AbstractSVGAnimatedLength.AnimSVGLength extends AbstractSVGLength
AbstractSVGAnimatedLength.getAnimVal().AbstractSVGLength.DefaultContextcontext, direction, HORIZONTAL_LENGTH, OTHER_LENGTH, UNITS, unitType, value, VERTICAL_LENGTH| Constructor and Description |
|---|
AbstractSVGAnimatedLength.AnimSVGLength(short direction)
Creates a new AnimSVGLength.
|
| Modifier and Type | Method and Description |
|---|---|
void |
convertToSpecifiedUnits(short unit)
DOM: Implements
SVGLength#convertToSpecifiedUnits(short). |
protected SVGOMElement |
getAssociatedElement()
Returns the element this length is associated with.
|
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 |
newValueSpecifiedUnits(short unit,
float value)
DOM: Implements
SVGLength#newValueSpecifiedUnits(short,float). |
protected void |
setAnimatedValue(int type,
float val)
Sets the animated value.
|
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). |
parse, reset, revalidatepublic AbstractSVGAnimatedLength.AnimSVGLength(short direction)
direction - is one of HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTHpublic short getUnitType()
SVGLength#getUnitType().getUnitType in class AbstractSVGLengthpublic float getValue()
SVGLength#getValue().getValue in class AbstractSVGLengthpublic float getValueInSpecifiedUnits()
SVGLength#getValueInSpecifiedUnits().getValueInSpecifiedUnits in class AbstractSVGLengthpublic java.lang.String getValueAsString()
SVGLength#getValueAsString().getValueAsString in class AbstractSVGLengthpublic void setValue(float value)
throws org.w3c.dom.DOMException
SVGLength#setValue(float).setValue in class AbstractSVGLengthorg.w3c.dom.DOMExceptionpublic void setValueInSpecifiedUnits(float value)
throws org.w3c.dom.DOMException
SVGLength#setValueInSpecifiedUnits(float).setValueInSpecifiedUnits in class AbstractSVGLengthorg.w3c.dom.DOMExceptionpublic void setValueAsString(java.lang.String value)
throws org.w3c.dom.DOMException
SVGLength#setValueAsString(String).setValueAsString in class AbstractSVGLengthorg.w3c.dom.DOMExceptionpublic void newValueSpecifiedUnits(short unit,
float value)
SVGLength#newValueSpecifiedUnits(short,float).newValueSpecifiedUnits in class AbstractSVGLengthpublic void convertToSpecifiedUnits(short unit)
SVGLength#convertToSpecifiedUnits(short).convertToSpecifiedUnits in class AbstractSVGLengthprotected SVGOMElement getAssociatedElement()
getAssociatedElement in class AbstractSVGLengthprotected void setAnimatedValue(int type,
float val)
type - one of the values defines in org.w3c.dom.svg.SVGLengthval - the lengthCopyright ? 2009 Apache Software Foundation. All Rights Reserved.