kinetic
Class Change

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

public class Change
extends Behavior

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.

See Also:
Serialized Form

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

amount

protected kinetic.KineticProperty amount
property storing the desired offset this behavior produces

Constructor Detail

Change

public Change()
constructs a new instance of the Change behavior with default parameters


Change

public Change(double delay_val,
              double dur_val,
              double amount_val)
creates a new instance of the Change behavior using the parameters

Parameters:
delay_val - time delay before starting - milliseconds
dur_val - lifespan of the before, time needed to complete - milliseconds
amount_val - amount of offset
Method Detail

setAmount

public void setAmount(double new_amount)
sets the amount of offset

Parameters:
new_amount - new offset

Process

public void Process()
main routine that produces that effect

Specified by:
Process in class Behavior