kinetic
Class Loop

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

public class Loop
extends TimeFilter

time filter used to easily produce repetion

See Also:
Serialized Form

Field Summary
 kinetic.KineticProperty period
          property to maintain the period of the loop - ms
 
Fields inherited from class kinetic.TimeFilter
duration, isDone, properties
 
Constructor Summary
Loop(double period_val)
          create a new isntance of Loop with a given looping period -ms, lasts forever
Loop(double period_val, double dur)
          create new instance of Loop with a given period and life span
 
Method Summary
 double apply(double time)
          executes the timefilter on the passed 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
 

Field Detail

period

public kinetic.KineticProperty period
property to maintain the period of the loop - ms

Constructor Detail

Loop

public Loop(double period_val)
create a new isntance of Loop with a given looping period -ms, lasts forever

Parameters:
period_val - looping period -ms

Loop

public Loop(double period_val,
            double dur)
create new instance of Loop with a given period and life span

Parameters:
period_val - looping period - ms
dur - lifespan of the loop - ms
Method Detail

apply

public double apply(double time)
executes the timefilter on the passed value of time

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