kinetic
Class SymmetricCurve

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

public class SymmetricCurve
extends Behavior

creates an S curvature with control, like twisting the middle of an S when the ends are fixed (absolute length of path changes).

See Also:
Serialized Form

Field Summary
 kinetic.KineticProperty amount
          offset amount
 kinetic.KineticProperty curvature
          curvature property
 kinetic.KineticProperty duration
          duration of movement
 
Fields inherited from class kinetic.Behavior
current_time, isDone, owner, properties, timeFilters
 
Constructor Summary
SymmetricCurve()
          creates a new instance of a Symmetric Curve
SymmetricCurve(double new_curvature, double new_amount)
          creates a new instance of symmetric curve with paramters
SymmetricCurve(double delay_val, double dur_val, double new_curvature, double new_amount)
          create a new instance of Symmetric curve with paramaters
 
Method Summary
 void Process()
          calculates new parent property value
 void setamount(double new_amount)
          set offset amount
 void setcurvature(double new_curvature)
          set curavture
 
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

curvature

public kinetic.KineticProperty curvature
curvature property


amount

public kinetic.KineticProperty amount
offset amount


duration

public kinetic.KineticProperty duration
duration of movement

Constructor Detail

SymmetricCurve

public SymmetricCurve()
creates a new instance of a Symmetric Curve


SymmetricCurve

public SymmetricCurve(double new_curvature,
                      double new_amount)
creates a new instance of symmetric curve with paramters

Parameters:
new_curvature - curvature
new_amount - offset amount

SymmetricCurve

public SymmetricCurve(double delay_val,
                      double dur_val,
                      double new_curvature,
                      double new_amount)
create a new instance of Symmetric curve with paramaters

Parameters:
delay_val - time until start - ms
dur_val - duration of motion
new_curvature - new curvature
new_amount - offsetamount
Method Detail

setcurvature

public void setcurvature(double new_curvature)
set curavture

Parameters:
new_curvature - new curvature

setamount

public void setamount(double new_amount)
set offset amount

Parameters:
new_amount - offset amount

Process

public void Process()
calculates new parent property value

Specified by:
Process in class Behavior