/** * Returns time interval that contains this time fraction */ public int getInterval(float fraction) { return keyTimes.getInterval(fraction); }
/** * Called at start of animation; sets starting value in simple "to" * animations. */ void setStartValue(T startValue) { if (isToAnimation()) { this.startValue = startValue; } }
/** * Simplest variation; determine keyTimes based on even division of 0-1 * range based on number of keyValues. This constructor assumes LINEAR * interpolation. * * @param keyValues * values that will be assumed at each time in keyTimes */ public KeyFrames(KeyValues<T> keyValues) { init(keyValues, null, (TimelineEase) null); }
public CorePropertyInterpolators() { this.interpolators = new HashSet<PropertyInterpolator>(); this.interpolators.add(new IntegerPropertyInterpolator()); this.interpolators.add(new FloatPropertyInterpolator()); this.interpolators.add(new DoublePropertyInterpolator()); this.interpolators.add(new LongPropertyInterpolator()); }
/** * Constructs a KeyValues object from a Evaluator and one or more values. * * @param params * the values to interpolate between. If there is only one * parameter, this is assumed to be a "to" animation where the * first value is dynamically determined at runtime when the * animation is started. * @throws IllegalArgumentException * if params does not have at least one value. */ public static <T> KeyValues<T> create(PropertyInterpolator evaluator, T... params) { return new KeyValues(evaluator, params); }
public Class getType() { return keyValues.getType(); }
public CorePropertyInterpolators() { this.interpolators = new HashSet<PropertyInterpolator>(); this.interpolators.add(new IntegerPropertyInterpolator()); this.interpolators.add(new FloatPropertyInterpolator()); this.interpolators.add(new DoublePropertyInterpolator()); this.interpolators.add(new LongPropertyInterpolator()); }
/** * Constructs a KeyValues object from a Evaluator and one or more values. * * @param params * the values to interpolate between. If there is only one * parameter, this is assumed to be a "to" animation where the * first value is dynamically determined at runtime when the * animation is started. * @throws IllegalArgumentException * if params does not have at least one value. */ public static <T> KeyValues<T> create(PropertyInterpolator evaluator, T... params) { return new KeyValues(evaluator, params); }
/** * Returns time interval that contains this time fraction */ public int getInterval(float fraction) { return keyTimes.getInterval(fraction); }
/** * Called at start of animation; sets starting value in simple "to" * animations. */ void setStartValue(T startValue) { if (isToAnimation()) { this.startValue = startValue; } }
/** * Simplest variation; determine keyTimes based on even division of 0-1 * range based on number of keyValues. This constructor assumes LINEAR * interpolation. * * @param keyValues * values that will be assumed at each time in keyTimes */ public KeyFrames(KeyValues<T> keyValues) { init(keyValues, null, (TimelineEase) null); }
public Class getType() { return keyValues.getType(); }
public CorePropertyInterpolators() { this.interpolators = new HashSet<PropertyInterpolator>(); this.interpolators.add(new IntegerPropertyInterpolator()); this.interpolators.add(new FloatPropertyInterpolator()); this.interpolators.add(new DoublePropertyInterpolator()); this.interpolators.add(new LongPropertyInterpolator()); }
/** * Constructs a KeyValues object from a Evaluator and one or more values. * * @param params * the values to interpolate between. If there is only one * parameter, this is assumed to be a "to" animation where the * first value is dynamically determined at runtime when the * animation is started. * @throws IllegalArgumentException * if params does not have at least one value. */ public static <T> KeyValues<T> create(PropertyInterpolator evaluator, T... params) { return new KeyValues(evaluator, params); }
/** * Returns time interval that contains this time fraction */ public int getInterval(float fraction) { return keyTimes.getInterval(fraction); }
/** * Called at start of animation; sets starting value in simple "to" * animations. */ void setStartValue(T startValue) { if (isToAnimation()) { this.startValue = startValue; } }
/** * Simplest variation; determine keyTimes based on even division of 0-1 * range based on number of keyValues. This constructor assumes LINEAR * interpolation. * * @param keyValues * values that will be assumed at each time in keyTimes */ public KeyFrames(KeyValues<T> keyValues) { init(keyValues, null, (TimelineEase) null); }
public Class getType() { return keyValues.getType(); }
/** * Constructs a KeyValues object from one or more values. The internal * Evaluator is automatically determined by the type of the parameters. * * @param params * the values to interpolate between. If there is only one * parameter, this is assumed to be a "to" animation where the * first value is dynamically determined at runtime when the * animation is started. * @throws IllegalArgumentException * if a {@link PropertyInterpolator} cannot be found that can interpolate * between the value types supplied */ public static <T> KeyValues<T> create(T... params) { return new KeyValues(params); }
/** * Constructs a KeyValues object from one or more values. The internal * Evaluator is automatically determined by the type of the parameters. * * @param params * the values to interpolate between. If there is only one * parameter, this is assumed to be a "to" animation where the * first value is dynamically determined at runtime when the * animation is started. * @throws IllegalArgumentException * if an {@link Evaluator} cannot be found that can interpolate * between the value types supplied */ public static <T> KeyValues<T> create(T... params) { return new KeyValues(params); }