All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class improv.util.Curve

java.lang.Object
   |
   +----improv.util.Curve

public abstract class Curve
extends Object
implements Animator
The Curve class is the base class for all Improv curve objects. Perhaps the most important method in the Curve class is the eval() method, which is used to compute the value of the curve at a particular time.


Variable Index

 o ADD
 o DIV
 o IGNORE
 o MAX
 o MIN
 o MULT
 o POW
 o SUB

Constructor Index

 o Curve()

Method Index

 o eval(double)
This is called from the animate method and is overridden by the individual curve classes.
 o getCompositeMode()
 o getOffset()
 o getOverlay()
 o getValue(double, double)
 o setCompositeMode(int)
used to set the composite mode of a curve
 o setOffset(double)
Used to set a temporal offset for the curve
 o setOverlay(Animator)
Used to set an overlay curve with the default composite method of "ADD"
 o setOverlay(Animator, String)
Used to set an overlay curve and a composite method
 o setValue(double)
 o timeBased(boolean)
This is called by the various filter types to determine the current value of the filter.

Variables

 o IGNORE
 public static final int IGNORE
 o ADD
 public static final int ADD
 o SUB
 public static final int SUB
 o MULT
 public static final int MULT
 o DIV
 public static final int DIV
 o MAX
 public static final int MAX
 o MIN
 public static final int MIN
 o POW
 public static final int POW

Constructors

 o Curve
 public Curve()

Methods

 o timeBased
 public void timeBased(boolean b)
This is called by the various filter types to determine the current value of the filter. This is overriden by the EditableCurve and ParameterizedCurve classes.

 o setValue
 public void setValue(double d)
 o eval
 public abstract double eval(double x)
This is called from the animate method and is overridden by the individual curve classes.

 o setOffset
 public void setOffset(double d)
Used to set a temporal offset for the curve

 o setOverlay
 public void setOverlay(Animator anim)
Used to set an overlay curve with the default composite method of "ADD"

 o setOverlay
 public void setOverlay(Animator anim,
                        String composite)
Used to set an overlay curve and a composite method

 o setCompositeMode
 public void setCompositeMode(int i)
used to set the composite mode of a curve

 o getOverlay
 public Curve getOverlay()
Returns:
the overlay curve
 o getCompositeMode
 public int getCompositeMode()
Returns:
the composite mode
 o getOffset
 public double getOffset()
Returns:
the temporal offset of the curve

All Packages  Class Hierarchy  This Package  Previous  Next  Index