|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kinetic.Behavior | +--kinetic.Curve
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.
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 |
public kinetic.KineticProperty in
public kinetic.KineticProperty out
public kinetic.KineticProperty amount
Constructor Detail |
public Curve()
public Curve(double new_in, double new_out, double new_amount)
new_in
- startin speednew_out
- ending speednew_amount
- offset amountpublic Curve(double delay_val, double dur_val, double new_in, double new_out, double new_amount)
delay_val
- time until starting - millisecondsnew_in
- set the starting speednew_out
- set the ending speeddur_val
- duration of behavior in millisecondsnew_amount
- amount of offsetMethod Detail |
public void setInAmount(double new_in)
new_in
- starting speedpublic void setOutAmount(double new_out)
new_out
- ending speedpublic void setamount(double new_amount)
new_amount
- offset amountpublic void Process()
Process
in class Behavior
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |