kinetic
Class Curve

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

public class Curve
extends Behavior

This behavior allow you to specify the startin and ending speed of a movement. (0,0) yields a slow-in slow-out behavior. (1,1) produces an fast-in fast-out result. These values may go beyond the bounds of [0,1]. Doing so produces an over shoot, or pull-back result.

See Also:
Serialized Form

Field Summary
 kinetic.KineticProperty amount
          property to store the amount of offset
 kinetic.KineticProperty in
          property to store the starting speed
 kinetic.KineticProperty out
          property to store the ending speed
 
Fields inherited from class kinetic.Behavior
current_time, duration, isDone, owner, properties, timeFilters
 
Constructor Summary
Curve()
          creates a new instance of Curve
Curve(double new_in, double new_out, double new_amount)
          basic constructor that defines only the values specific to Curve
Curve(double delay_val, double dur_val, double new_in, double new_out, double new_amount)
          constructor that will add a delay time fitler for convenience
 
Method Summary
 void Process()
          main routine the executes the calculation
 void setamount(double new_amount)
          set the offset amount
 void setInAmount(double new_in)
          set the starting speed
 void setOutAmount(double new_out)
          set the ending speed
 
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

in

public kinetic.KineticProperty in
property to store the starting speed


out

public kinetic.KineticProperty out
property to store the ending speed


amount

public kinetic.KineticProperty amount
property to store the amount of offset

Constructor Detail

Curve

public Curve()
creates a new instance of Curve


Curve

public Curve(double new_in,
             double new_out,
             double new_amount)
basic constructor that defines only the values specific to Curve

Parameters:
new_in - startin speed
new_out - ending speed
new_amount - offset amount

Curve

public Curve(double delay_val,
             double dur_val,
             double new_in,
             double new_out,
             double new_amount)
constructor that will add a delay time fitler for convenience

Parameters:
delay_val - time until starting - milliseconds
new_in - set the starting speed
new_out - set the ending speed
dur_val - duration of behavior in milliseconds
new_amount - amount of offset
Method Detail

setInAmount

public void setInAmount(double new_in)
set the starting speed

Parameters:
new_in - starting speed

setOutAmount

public void setOutAmount(double new_out)
set the ending speed

Parameters:
new_out - ending speed

setamount

public void setamount(double new_amount)
set the offset amount

Parameters:
new_amount - offset amount

Process

public void Process()
main routine the executes the calculation

Specified by:
Process in class Behavior