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

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

public class RectanglePulsator
extends Object
implements PulsatorProvider

SinusPulsater.

Author:
void

Constructor Summary
RectanglePulsator()
           
 
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

RectanglePulsator

public RectanglePulsator()
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] intervall

reset

public void reset(long msTime)
Reset.

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


Copyright © 2012. All Rights Reserved.