FileDocCategorySizeDatePackage
RefValues.javaAPI DocphoneME MR2 API (J2ME)2802Wed May 02 18:00:36 BST 2007com.sun.perseus.model

RefValues

public interface RefValues
version
$Id: RefValues.java,v 1.2 2006/04/21 06:38:26 st125089 Exp $

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Object[]compute(int si, float p)
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.

param
si the current segment index
param
p the current penetration

public intgetComponents()

return
the number of components in the refValues

public floatgetLength()
Computes the length of the RefValues. This is meant for paced timing computation.

return
the total length of refValues.

public floatgetLength(int si)
Computes the length of segment at index si.

param
si the segment index.
param
ci the component index.

public SegmentgetSegment(int i)

param
i requested segment index.
return
Segment at index i

public intgetSegments()

return
the number of segments in refValues

public voidinitialize()
Should be called after the RefValue's configuration is complete to give the implementation a chance to initialize internal data and cache values.

public voidmakeDiscrete()
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.