de.lessvoid.nifty.tools.time
Class TimeInterpolator

java.lang.Object
  extended by de.lessvoid.nifty.tools.time.TimeInterpolator

public class TimeInterpolator
extends Object

TimeProvider class.

Author:
void

Constructor Summary
TimeInterpolator(Properties parameter, TimeProvider newTimeProvider, boolean infinite)
          initialize with the given parameters.
 
Method Summary
 float getValue()
          get the current value [0.0, 1.0].
 void start()
          start the interpolation.
 boolean update()
          update the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeInterpolator

public TimeInterpolator(Properties parameter,
                        TimeProvider newTimeProvider,
                        boolean infinite)
initialize with the given parameters.

Parameters:
parameter - parameter props
newTimeProvider - TimeProvider to use
infinite - infinit effects never end
Method Detail

start

public void start()
start the interpolation.


update

public final boolean update()
update the value.

Returns:
true when still active and false when done

getValue

public final float getValue()
get the current value [0.0, 1.0].

Returns:
the current value


Copyright © 2012. All Rights Reserved.