de.matthiasmann.twl.utils
Class TintAnimator.AnimationStateTimeSource

java.lang.Object
  extended by de.matthiasmann.twl.utils.TintAnimator.AnimationStateTimeSource
All Implemented Interfaces:
TintAnimator.TimeSource
Enclosing class:
TintAnimator

public static class TintAnimator.AnimationStateTimeSource
extends java.lang.Object
implements TintAnimator.TimeSource

A time source which uses a specified animation state as time source.


Constructor Summary
TintAnimator.AnimationStateTimeSource(AnimationState animState, AnimationState.StateKey animStateKey)
           
TintAnimator.AnimationStateTimeSource(AnimationState animState, java.lang.String animStateName)
           
 
Method Summary
 int getTime()
          Returns the current time (since last reset) in milliseconds.
 void resetTime()
          Calls resetAnimationTime on the animation state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TintAnimator.AnimationStateTimeSource

public TintAnimator.AnimationStateTimeSource(AnimationState animState,
                                             java.lang.String animStateName)

TintAnimator.AnimationStateTimeSource

public TintAnimator.AnimationStateTimeSource(AnimationState animState,
                                             AnimationState.StateKey animStateKey)
Method Detail

getTime

public int getTime()
Description copied from interface: TintAnimator.TimeSource
Returns the current time (since last reset) in milliseconds.

Specified by:
getTime in interface TintAnimator.TimeSource
Returns:
current time in ms

resetTime

public void resetTime()
Calls resetAnimationTime on the animation state

Specified by:
resetTime in interface TintAnimator.TimeSource
See Also:
AnimationState.resetAnimationTime(java.lang.String)