public class AdditiveAnimation<T> extends Object
| Constructor and Description |
|---|
AdditiveAnimation(T target,
Property<T,Float> property,
float startValue,
float targetValue)
The preferred constructor to use when animating properties.
|
AdditiveAnimation(T target,
Property<T,Float> property,
float startValue,
Path path,
PathEvaluator.PathMode pathMode,
PathEvaluator sharedEvaluator) |
AdditiveAnimation(T target,
String tag,
float startValue,
float targetValue)
Use this constructor for custom properties that have no simple getter or setter.
|
AdditiveAnimation(T target,
String tag,
float startValue,
Path path,
PathEvaluator.PathMode pathMode,
PathEvaluator sharedEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
AdditiveAnimation<T> |
cloneWithTarget(T target,
Float startValue) |
boolean |
equals(Object o) |
float |
evaluateAt(float progress) |
at.wirecube.additiveanimations.additive_animator.AccumulatedAnimationValue |
getAccumulatedValue() |
AnimationState<T> |
getAssociatedAnimationState() |
float |
getByValue() |
TypeEvaluator |
getCustomTypeEvaluator() |
Path |
getPath() |
Property<T,Float> |
getProperty() |
float |
getStartValue() |
String |
getTag() |
T |
getTarget() |
float |
getTargetValue() |
int |
hashCode() |
boolean |
isBy() |
void |
setAccumulatedValue(at.wirecube.additiveanimations.additive_animator.AccumulatedAnimationValue av) |
void |
setAssociatedAnimationState(AnimationState<T> associatedAnimationStateId) |
void |
setBy(boolean by)
Set this immediately after creating the animation.
|
void |
setCustomInterpolator(TimeInterpolator customInterpolator) |
void |
setCustomTypeEvaluator(TypeEvaluator<Float> evaluator) |
void |
setStartValue(float startValue) |
void |
setTargetValue(float targetValue) |
public AdditiveAnimation(T target, Property<T,Float> property, float startValue, float targetValue)
public AdditiveAnimation(T target, String tag, float startValue, float targetValue)
tag - Name of the animated property. Must be unique.startValue - Start value of the animated property.targetValue - Target value of the animated property.public AdditiveAnimation(T target, String tag, float startValue, Path path, PathEvaluator.PathMode pathMode, PathEvaluator sharedEvaluator)
public AdditiveAnimation(T target, Property<T,Float> property, float startValue, Path path, PathEvaluator.PathMode pathMode, PathEvaluator sharedEvaluator)
public void setAccumulatedValue(at.wirecube.additiveanimations.additive_animator.AccumulatedAnimationValue av)
public String getTag()
public float getStartValue()
public float getTargetValue()
public void setStartValue(float startValue)
public void setTargetValue(float targetValue)
public void setCustomTypeEvaluator(TypeEvaluator<Float> evaluator)
public TypeEvaluator getCustomTypeEvaluator()
public T getTarget()
public void setBy(boolean by)
public boolean isBy()
public float getByValue()
public Path getPath()
public void setCustomInterpolator(TimeInterpolator customInterpolator)
public float evaluateAt(float progress)
public at.wirecube.additiveanimations.additive_animator.AccumulatedAnimationValue getAccumulatedValue()
public AdditiveAnimation<T> cloneWithTarget(T target, Float startValue)
public void setAssociatedAnimationState(AnimationState<T> associatedAnimationStateId)
public AnimationState<T> getAssociatedAnimationState()