kinetic
Class Oscillate

java.lang.Object
  |
  +--kinetic.Behavior
        |
        +--kinetic.Oscillate
All Implemented Interfaces:
java.io.Serializable

public class Oscillate
extends Behavior

Oscillate behavior. Produces cosine based change.

See Also:
Serialized Form

Field Summary
 kinetic.KineticProperty amount
          peak offset value
 kinetic.KineticProperty phase
          radian phase shift
 kinetic.KineticProperty rate
          osciallation rate (radians over life span)
 
Fields inherited from class kinetic.Behavior
current_time, duration, isDone, owner, properties, timeFilters
 
Constructor Summary
Oscillate()
          Creates a new instance of Oscillate
Oscillate(double delay_val, double dur_val, double amount_val, double rate_val, double phase_val)
          creates a new instance of oscillate
 
Method Summary
 void Process()
          main routine to calculate the new value for the owner property
 
Methods inherited from class kinetic.Behavior
addTimeFilter, apply, clear, getDuration, getPropertyList, getTimeFilterList, isDone, PrepareVariables, reset, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

amount

public kinetic.KineticProperty amount
peak offset value


rate

public kinetic.KineticProperty rate
osciallation rate (radians over life span)


phase

public kinetic.KineticProperty phase
radian phase shift

Constructor Detail

Oscillate

public Oscillate()
Creates a new instance of Oscillate


Oscillate

public Oscillate(double delay_val,
                 double dur_val,
                 double amount_val,
                 double rate_val,
                 double phase_val)
creates a new instance of oscillate

Parameters:
delay_val - time delay - ms
dur_val - duration/lifespan - ms
amount_val - peak offset amount
rate_val - radians over lifespan
phase_val - radian phase offset
Method Detail

Process

public void Process()
main routine to calculate the new value for the owner property

Specified by:
Process in class Behavior