kinetic
Class TimeFilter

java.lang.Object
  |
  +--kinetic.TimeFilter
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Delay, Loop, PaceInOut, Reverse, Speed

public abstract class TimeFilter
extends java.lang.Object
implements java.io.Serializable

base time fitler class. provides all the routines the enigne needs to execute time filters

See Also:
Serialized Form

Field Summary
protected  kinetic.KineticProperty duration
          common duration property
protected  boolean isDone
          flag used for completion
protected  java.util.ArrayList properties
          internal property list
 
Constructor Summary
TimeFilter()
          creates a new instance of a time filter
 
Method Summary
abstract  double apply(double time)
          method called by engine to calculate ne output time value
 void clear()
          clears all known animation data
 double getDuration()
          get duration
 java.util.ArrayList getPropertyList()
          get property list
 boolean isDone()
          checks if it is done
 void PrepareVariables(double time)
          prepare internal variables/properties with unprocessed time
 void reset()
          reset internal variables
 void setDuration(double dur)
          set duration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected java.util.ArrayList properties
internal property list


duration

protected kinetic.KineticProperty duration
common duration property


isDone

protected boolean isDone
flag used for completion

Constructor Detail

TimeFilter

public TimeFilter()
creates a new instance of a time filter

Method Detail

apply

public abstract double apply(double time)
method called by engine to calculate ne output time value

Parameters:
time - input value of time
Returns:
processed output value of time

PrepareVariables

public void PrepareVariables(double time)
prepare internal variables/properties with unprocessed time

Parameters:
time - value of time

getPropertyList

public java.util.ArrayList getPropertyList()
get property list

Returns:
list of internal properties

getDuration

public double getDuration()
get duration

Returns:
duration

setDuration

public void setDuration(double dur)
set duration

Parameters:
dur - duration

isDone

public boolean isDone()
checks if it is done

Returns:
isDone

reset

public void reset()
reset internal variables


clear

public void clear()
clears all known animation data