kinetic
Class Reverse

java.lang.Object
  |
  +--kinetic.TimeFilter
        |
        +--kinetic.Reverse
All Implemented Interfaces:
java.io.Serializable

public class Reverse
extends TimeFilter

time filter that reverses the flow of time over a given duration. For exmaple, if the duration is set to 10 seconds for the first 10 seconds, the time will count down from 10 to 0. After the lifspan is over it will resume at 10 seconds.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class kinetic.TimeFilter
duration, isDone, properties
 
Constructor Summary
Reverse(double dur)
          creates new instance of reverse with a duration
 
Method Summary
 double apply(double time)
          processed input value of time to produce an new output value of time
 
Methods inherited from class kinetic.TimeFilter
clear, getDuration, getPropertyList, isDone, PrepareVariables, reset, setDuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reverse

public Reverse(double dur)
creates new instance of reverse with a duration

Parameters:
dur - window of time to count backwords
Method Detail

apply

public double apply(double time)
processed input value of time to produce an new output value of time

Specified by:
apply in class TimeFilter
Parameters:
time - input value of time
Returns:
processed output value of time