|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.anim.dom.AbstractSVGLength
org.apache.batik.anim.dom.AbstractSVGAnimatedLength.AnimSVGLength
protected class AbstractSVGAnimatedLength.AnimSVGLength
This class represents the SVGLength returned by AbstractSVGAnimatedLength.getAnimVal().
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.batik.anim.dom.AbstractSVGLength |
|---|
AbstractSVGLength.DefaultContext |
| Field Summary |
|---|
| Fields inherited from class org.apache.batik.anim.dom.AbstractSVGLength |
|---|
context, direction, HORIZONTAL_LENGTH, OTHER_LENGTH, UNITS, unitType, value, VERTICAL_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.AnimSVGLength(short direction)
Creates a new AnimSVGLength. |
|
| Method Summary | |
|---|---|
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(). |
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(String value)
DOM: Implements SVGLength.setValueAsString(String). |
void |
setValueInSpecifiedUnits(float value)
DOM: Implements SVGLength.setValueInSpecifiedUnits(float). |
| Methods inherited from class org.apache.batik.anim.dom.AbstractSVGLength |
|---|
parse, reset, revalidate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSVGAnimatedLength.AnimSVGLength(short direction)
direction - is one of HORIZONTAL_LENGTH, VERTICAL_LENGTH, or OTHER_LENGTH| Method Detail |
|---|
public short getUnitType()
SVGLength.getUnitType().
getUnitType in interface org.w3c.dom.svg.SVGLengthgetUnitType in class AbstractSVGLengthpublic float getValue()
SVGLength.getValue().
getValue in interface org.w3c.dom.svg.SVGLengthgetValue in class AbstractSVGLengthpublic float getValueInSpecifiedUnits()
SVGLength.getValueInSpecifiedUnits().
getValueInSpecifiedUnits in interface org.w3c.dom.svg.SVGLengthgetValueInSpecifiedUnits in class AbstractSVGLengthpublic String getValueAsString()
SVGLength.getValueAsString().
getValueAsString in interface org.w3c.dom.svg.SVGLengthgetValueAsString in class AbstractSVGLength
public void setValue(float value)
throws DOMException
SVGLength.setValue(float).
setValue in interface org.w3c.dom.svg.SVGLengthsetValue in class AbstractSVGLengthDOMException
public void setValueInSpecifiedUnits(float value)
throws DOMException
SVGLength.setValueInSpecifiedUnits(float).
setValueInSpecifiedUnits in interface org.w3c.dom.svg.SVGLengthsetValueInSpecifiedUnits in class AbstractSVGLengthDOMException
public void setValueAsString(String value)
throws DOMException
SVGLength.setValueAsString(String).
setValueAsString in interface org.w3c.dom.svg.SVGLengthsetValueAsString in class AbstractSVGLengthDOMException
public void newValueSpecifiedUnits(short unit,
float value)
SVGLength.newValueSpecifiedUnits(short,float).
newValueSpecifiedUnits in interface org.w3c.dom.svg.SVGLengthnewValueSpecifiedUnits in class AbstractSVGLengthpublic void convertToSpecifiedUnits(short unit)
SVGLength.convertToSpecifiedUnits(short).
convertToSpecifiedUnits in interface org.w3c.dom.svg.SVGLengthconvertToSpecifiedUnits in class AbstractSVGLengthprotected SVGOMElement getAssociatedElement()
getAssociatedElement in class AbstractSVGLength
protected void setAnimatedValue(int type,
float val)
type - one of the values defines in org.w3c.dom.svg.SVGLengthval - the length
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||