kinetic
Class HopSecondary

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

public class HopSecondary
extends Behavior

contains the derivative equation for the Hop behavior. It can be used by itself. However, if used in combination, it can drive secondary effect such as squash and stretch. All parameters with the exception of amount should match to synchronize with an existing Hop behavior

See Also:
Serialized Form

Field Summary
 kinetic.KineticProperty amount
          property to hold the offset amount
 kinetic.KineticProperty in
          property to hold in starting speed
 kinetic.KineticProperty out
          property to hold the endin speed
 
Fields inherited from class kinetic.Behavior
current_time, duration, isDone, owner, properties, timeFilters
 
Constructor Summary
HopSecondary()
          constructs a new instance of the HopSecondary behavior
HopSecondary(double new_in, double new_out, double new_amount)
          constructs a new instance of the HopSecondary behavior
HopSecondary(double delay_val, double dur_val, double new_in, double new_out, double new_amount)
          constructs a new instance of the HopSecondary behavior
 
Method Summary
 void Process()
          main routine used to perfomr calculation
 void setamount(double new_amount)
          sets the offset amount
 void setInAmount(double new_in)
          sets the starting speed
 void setOutAmount(double new_out)
          sets 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 hold in starting speed


out

public kinetic.KineticProperty out
property to hold the endin speed


amount

public kinetic.KineticProperty amount
property to hold the offset amount

Constructor Detail

HopSecondary

public HopSecondary()
constructs a new instance of the HopSecondary behavior


HopSecondary

public HopSecondary(double new_in,
                    double new_out,
                    double new_amount)
constructs a new instance of the HopSecondary behavior

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

HopSecondary

public HopSecondary(double delay_val,
                    double dur_val,
                    double new_in,
                    double new_out,
                    double new_amount)
constructs a new instance of the HopSecondary behavior

Parameters:
delay_val - delay - ms
dur_val - duration - ms
new_in - startin speed
new_out - ending speed
new_amount - offset amount
Method Detail

setInAmount

public void setInAmount(double new_in)
sets the starting speed

Parameters:
new_in - new starting speed

setOutAmount

public void setOutAmount(double new_out)
sets the ending speed

Parameters:
new_out - new ending speed

setamount

public void setamount(double new_amount)
sets the offset amount

Parameters:
new_amount - new offset amount

Process

public void Process()
main routine used to perfomr calculation

Specified by:
Process in class Behavior