fi.hut.tml.xsmiles.dom
Interface AnimationService

All Known Implementing Classes:
AreaElementImpl, EnvironmentElementImpl, GenericElementImpl, ListenerElementImpl, SMILBrushElementImpl, SMILRegionElementImpl

public interface AnimationService


Method Summary
 float convertStringToUnitless(java.lang.String attr, java.lang.String value)
          Convert String attribute to an float value
 java.lang.String convertUnitlessToString(java.lang.String attr, float value)
           
 java.lang.String getAnimAttribute(java.lang.String attr)
          Returns the animated value of attribute attr.
 void refreshAnimation()
          Refresh element with all the animation values.
 void removeAnimAttribute(java.lang.String attr)
          The anim attribute value removed with this method allows the DOM attribute value be visible.
 void setAnimAttribute(java.lang.String attr, java.lang.String value)
          The attribute value set with this method should take precedence over the DOM attribute value.
 

Method Detail

convertStringToUnitless

public float convertStringToUnitless(java.lang.String attr,
                                     java.lang.String value)
Convert String attribute to an float value


convertUnitlessToString

public java.lang.String convertUnitlessToString(java.lang.String attr,
                                                float value)

getAnimAttribute

public java.lang.String getAnimAttribute(java.lang.String attr)
Returns the animated value of attribute attr.


setAnimAttribute

public void setAnimAttribute(java.lang.String attr,
                             java.lang.String value)
The attribute value set with this method should take precedence over the DOM attribute value.

Parameters:
attr - Attribute to be animated
value - Animation value to be set

removeAnimAttribute

public void removeAnimAttribute(java.lang.String attr)
The anim attribute value removed with this method allows the DOM attribute value be visible.

Parameters:
attr - Attribute to be animated (animation removed)

refreshAnimation

public void refreshAnimation()
Refresh element with all the animation values. This is called after several calls to setAnimAttribute() and removeAttribute().



X-Smiles 1.2