de.lessvoid.nifty.tools.time.interpolator
Class NullTime

java.lang.Object
  extended by de.lessvoid.nifty.tools.time.interpolator.NullTime
All Implemented Interfaces:
Interpolator

public class NullTime
extends Object
implements Interpolator

Interpolator that always return 1.0f.

Author:
void

Constructor Summary
NullTime()
           
 
Method Summary
 float getValue(long lengthParameter, long timePassed)
          get a new value.
 void initialize(Properties parameter)
          initialize.
 void start()
          In case the Interpolator wants to set some value when started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullTime

public NullTime()
Method Detail

initialize

public void initialize(Properties parameter)
initialize.

Specified by:
initialize in interface Interpolator
Parameters:
parameter - Properties used to parameterize this class

start

public void start()
Description copied from interface: Interpolator
In case the Interpolator wants to set some value when started.

Specified by:
start in interface Interpolator

getValue

public float getValue(long lengthParameter,
                      long timePassed)
get a new value.

Specified by:
getValue in interface Interpolator
Parameters:
lengthParameter - max length of effect in ms
timePassed - time already passed in ms
Returns:
the value


Copyright © 2011. All Rights Reserved.