| com.sun.perseus.model.RefValues
All known Subclasses: com.sun.perseus.model.TransformRefValues, com.sun.perseus.model.FloatRefValues, com.sun.perseus.model.StringRefValues, com.sun.perseus.model.MotionRefValues,
RefValues | public interface RefValues (Code) | | version: $Id: RefValues.java,v 1.2 2006/04/21 06:38:26 st125089 Exp $ |
Method Summary | |
Object[] | compute(int si, float p) Computes the value for the input interpolated values. | int | getComponents() | float | getLength() Computes the length of the RefValues. | float | getLength(int si) Computes the length of segment at index si. | Segment | getSegment(int i) Parameters: i - requested segment index. | int | getSegments() | void | initialize() Should be called after the RefValue's configuration is complete
to give the implementation a chance to initialize
internal data and cache values. | void | makeDiscrete() Adds a new time segment so accomodate for discreet behavior.
If there is only one segment for discreet animations, the
last value is never shown. |
compute | Object[] compute(int si, float p)(Code) | | Computes the value for the input interpolated values.
There should be as many entries in the return array as there
are components in the RefValues.
Parameters: si - the current segment index Parameters: p - the current penetration |
getComponents | int getComponents()(Code) | | the number of components in the refValues |
getLength | float getLength()(Code) | | Computes the length of the RefValues. This is meant for paced timing
computation.
the total length of refValues. |
getLength | float getLength(int si)(Code) | | Computes the length of segment at index si.
Parameters: si - the segment index. Parameters: ci - the component index. |
getSegment | Segment getSegment(int i)(Code) | | Parameters: i - requested segment index. Segment at index i |
getSegments | int getSegments()(Code) | | the number of segments in refValues |
initialize | void initialize()(Code) | | Should be called after the RefValue's configuration is complete
to give the implementation a chance to initialize
internal data and cache values.
|
makeDiscrete | void makeDiscrete()(Code) | | Adds a new time segment so accomodate for discreet behavior.
If there is only one segment for discreet animations, the
last value is never shown. To accomodate for that, this
method should add a segment to the RefValues so that the
last animation value is shown during the last value interval
of a discreet animation.
|
|
|