All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class improv.util.EditableCurve

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

public abstract class EditableCurve
extends Curve
This is the base class of all Keyframe-style Curves.

See Also:
SplineCurve, SquareCurve, LinearCurve

Variable Index

 o BOUNCE
 o LOOP
 o RUN_ONCE
 o STEP

Constructor Index

 o EditableCurve()

Method Index

 o animate(double)
 o animate(double, double)
 o animate(double, double, int)
 o animate(double, int)
 o copy()
Create a duplicate of this curve.
 o copyInto(EditableCurve)
Copy the parameters of one EditableCurve into another.
 o getMode()
 o getXPoints()
 o getYPoints()
 o insertPoint(double, double)
Insert a new keypoint into the curve
 o movePoint(int, double, double)
Move a specific keypoint on the curve
 o removePoint(int)
Remove a specific keypoint from the curve.
 o setMode(int)
 o setPoints(double[], double[])

Variables

 o RUN_ONCE
 public static final int RUN_ONCE
 o LOOP
 public static final int LOOP
 o BOUNCE
 public static final int BOUNCE
 o STEP
 public static final int STEP

Constructors

 o EditableCurve
 public EditableCurve()

Methods

 o copy
 public abstract EditableCurve copy()
Create a duplicate of this curve.

 o copyInto
 public void copyInto(EditableCurve curve)
Copy the parameters of one EditableCurve into another. The curve specified need not be the same type as the curve being copied.

 o getXPoints
 public double[] getXPoints()
Returns:
the array of x values (keys)
 o getYPoints
 public double[] getYPoints()
Returns:
the array of y values (key values)
 o setPoints
 public void setPoints(double x[],
                       double y[])
Parameters:
x - an array of keys
y - an array of key values
 o setMode
 public void setMode(int mode)
Parameters:
mode - the cycle mode of the curve (LOOP,BOUNCE,RUN_ONCE,STEP)
 o movePoint
 public void movePoint(int keyNum,
                       double x,
                       double y)
Move a specific keypoint on the curve

Parameters:
keyNum - which keypoint to move
x - the new x position
y - the new y position
 o insertPoint
 public void insertPoint(double x,
                         double y)
Insert a new keypoint into the curve

Parameters:
x - the x position
y - the y position
 o removePoint
 public void removePoint(int keyNum)
Remove a specific keypoint from the curve.

Parameters:
keyNum - which keypoint to delete
 o animate
 public double animate(double x,
                       int mode)
Parameters:
x - the position being evaluated.
mode - the cycle mode. Overrides the mode previously set for the curve.
Returns:
the value for the curve at the x position, given the curve's cycle mode
 o animate
 public double animate(double x,
                       double weight,
                       int mode)
 o animate
 public double animate(double time)
Parameters:
x - the curve position being evaluated.
Returns:
the value for the curve at the x position, given the curve's cycle mode
Overrides:
animate in class Curve
 o animate
 public double animate(double time,
                       double weight)
Overrides:
animate in class Curve
 o getMode
 public int getMode()
Returns:
the curve's cycle mode.

All Packages  Class Hierarchy  This Package  Previous  Next  Index