Home | History | Annotate | Download | only in animation

Lines Matching defs:Keyframe

20  * This class holds a time/value pair for an animation. The Keyframe class is used
22 * of the animation. As the time proceeds from one keyframe to the other, the value of the
23 * target object will animate between the value at the previous keyframe and the value at the
24 * next keyframe. Each keyframe also holds an optional {@link TimeInterpolator}
25 * object, which defines the time interpolation over the intervalue preceding the keyframe.
27 * <p>The Keyframe class itself is abstract. The type-specific factory methods will return
28 * a subclass of Keyframe specific to the type of value being stored. This is done to improve
30 * <code>int</code> values). Other types will fall into a more general Keyframe class that
36 public abstract class Keyframe implements Cloneable {
43 * The type of the value in this Keyframe. This type is determined at construction time,
49 * The optional time interpolator for the interval preceding this keyframe. A null interpolator
55 * Flag to indicate whether this keyframe has a valid value. This flag is used when an
62 * Constructs a Keyframe object with the given time and value. The time defines the
70 * the time in this keyframe, and the the value animated from as the time passes the time in
71 * this keyframe.
73 public static Keyframe ofInt(float fraction, int value) {
78 * Constructs a Keyframe object with the given time. The value at this time will be derived
89 public static Keyframe ofInt(float fraction) {
94 * Constructs a Keyframe object with the given time and value. The time defines the
102 * the time in this keyframe, and the the value animated from as the time passes the time in
103 * this keyframe.
105 public static Keyframe ofFloat(float fraction, float value) {
110 * Constructs a Keyframe object with the given time. The value at this time will be derived
121 public static Keyframe ofFloat(float fraction) {
126 * Constructs a Keyframe object with the given time and value. The time defines the
134 * the time in this keyframe, and the the value animated from as the time passes the time in
135 * this keyframe.
137 public static Keyframe ofObject(float fraction, Object value) {
142 * Constructs a Keyframe object with the given time. The value at this time will be derived
153 public static Keyframe ofObject(float fraction) {
158 * Indicates whether this keyframe has a valid value. This method is called internally when
169 * Gets the value for this Keyframe.
171 * @return The value for this Keyframe.
176 * Sets the value for this Keyframe.
178 * @param value value for this Keyframe.
183 * Gets the time for this keyframe, as a fraction of the overall animation duration.
185 * @return The time associated with this keyframe, as a fraction of the overall animation
193 * Sets the time for this keyframe, as a fraction of the overall animation duration.
195 * @param fraction time associated with this keyframe, as a fraction of the overall animation
203 * Gets the optional interpolator for this Keyframe. A value of <code>null</code> indicates
206 * @return The optional interpolator for this Keyframe.
213 * Sets the optional interpolator for this Keyframe. A value of <code>null</code> indicates
216 * @return The optional interpolator for this Keyframe.
223 * Gets the type of keyframe. This information is used by ValueAnimator to determine the type of
225 * on the type of Keyframe created.
227 * @return The type of the value stored in the Keyframe.
234 public abstract Keyframe clone();
239 static class ObjectKeyframe extends Keyframe {
271 * Internal subclass used when the keyframe value is of type int.
273 static class IntKeyframe extends Keyframe {
318 * Internal subclass used when the keyframe value is of type float.
320 static class FloatKeyframe extends Keyframe {