Methods Summary |
---|
public android.animation.Keyframes | clone()
|
public java.util.List | getKeyframes()
|
public java.lang.Class | getType()
|
public java.lang.Object | getValue(float fraction)Gets the animated value, given the elapsed fraction of the animation (interpolated by the
animation's interpolator) and the evaluator used to calculate in-between values. This
function maps the input fraction to the appropriate keyframe interval and a fraction
between them and returns the interpolated value. Note that the input fraction may fall
outside the [0-1] bounds, if the animation's interpolator made that happen (e.g., a
spring interpolation that might send the fraction past 1.0). We handle this situation by
just using the two keyframes at the appropriate end when the value is outside those bounds.
|
public void | invalidateCache()If subclass has variables that it calculates based on the Keyframes, it should reset them
when this method is called because Keyframe contents might have changed.
|
public void | setEvaluator(TypeEvaluator evaluator)Sets the TypeEvaluator to be used when calculating animated values. This object
is required only for Keyframes that are not either IntKeyframes or FloatKeyframes,
both of which assume their own evaluator to speed up calculations with those primitive
types.
|