public interface Keyframes extends Cloneable
Modifier and Type | Interface and Description |
---|---|
static interface |
Keyframes.FloatKeyframes
A specialization of Keyframes that has float primitive value calculation.
|
static interface |
Keyframes.IntKeyframes
A specialization of Keyframes that has integer primitive value calculation.
|
Modifier and Type | Method and Description |
---|---|
Keyframes |
clone() |
List<Keyframe> |
getKeyframes() |
Class |
getType() |
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.
|
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.
|
void |
setEvaluator(TypeEvaluator evaluator)
Sets the TypeEvaluator to be used when calculating animated values.
|
void setEvaluator(TypeEvaluator evaluator)
evaluator
- The TypeEvaluator to be used to calculate animated values.Class getType()
Object getValue(float fraction)
fraction
- The elapsed fraction of the animationvoid invalidateCache()
List<Keyframe> getKeyframes()
Keyframes clone()