|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kinetic.Behavior | +--kinetic.Change
This class produces a uniform change onto any attached property. It applies an offset to the incomming property value. The offset is 0 when t<=0, and offset=amount when t>= duration.
Field Summary | |
protected kinetic.KineticProperty |
amount
property storing the desired offset this behavior produces |
Fields inherited from class kinetic.Behavior |
current_time, duration, isDone, owner, properties, timeFilters |
Constructor Summary | |
Change()
constructs a new instance of the Change behavior with default parameters |
|
Change(double delay_val,
double dur_val,
double amount_val)
creates a new instance of the Change behavior using the parameters |
Method Summary | |
void |
Process()
main routine that produces that effect |
void |
setAmount(double new_amount)
sets the amount of offset |
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 |
protected kinetic.KineticProperty amount
Constructor Detail |
public Change()
public Change(double delay_val, double dur_val, double amount_val)
delay_val
- time delay before starting - millisecondsdur_val
- lifespan of the before, time needed to complete - millisecondsamount_val
- amount of offsetMethod Detail |
public void setAmount(double new_amount)
new_amount
- new offsetpublic void Process()
Process
in class Behavior
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |