de.lessvoid.nifty.tools.pulsate.provider
Class SinusPulsator

java.lang.Object
  extended by de.lessvoid.nifty.tools.pulsate.provider.SinusPulsator
All Implemented Interfaces:
PulsatorProvider

public class SinusPulsator
extends Object
implements PulsatorProvider

SinusPulsater.

Author:
void

Constructor Summary
SinusPulsator()
           
 
Method Summary
 float getValue(long msTime)
          Get current value for the given time.
 void initialize(Properties parameter)
          Initialize the Pulsater.
 void reset(long msTime)
          Reset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SinusPulsator

public SinusPulsator()
Method Detail

initialize

public void initialize(Properties parameter)
Initialize the Pulsater.

Specified by:
initialize in interface PulsatorProvider
Parameters:
parameter - the parameters

getValue

public float getValue(long msTime)
Get current value for the given time.

Specified by:
getValue in interface PulsatorProvider
Parameters:
msTime - current time
Returns:
the pulsate value in [0,1] interval

reset

public void reset(long msTime)
Reset.

Specified by:
reset in interface PulsatorProvider
Parameters:
msTime - current time


Copyright © 2012. All Rights Reserved.