Class AdditiveAnimation<T>


  • public class AdditiveAnimation<T>
    extends Object
    This class is public for subclasses of AdditiveAnimator only, and should not be used outside of that.
    • Constructor Detail

      • AdditiveAnimation

        public AdditiveAnimation​(T target,
                                 Property<T,​Float> property,
                                 float startValue,
                                 float targetValue)
        The preferred constructor to use when animating properties. If you use this constructor, you don't need to worry about the logic to apply the changes. This is taken care of by using the Setter provided by `property`.
      • AdditiveAnimation

        public AdditiveAnimation​(T target,
                                 String tag,
                                 float startValue,
                                 float targetValue)
        Use this constructor for custom properties that have no simple getter or setter.
        Parameters:
        tag - Name of the animated property. Must be unique.
        startValue - Start value of the animated property.
        targetValue - Target value of the animated property.
    • Method Detail

      • setAccumulatedValue

        public void setAccumulatedValue​(at.wirecube.additiveanimations.additive_animator.AccumulatedAnimationValue av)
      • getTag

        public String getTag()
      • getStartValue

        public float getStartValue()
      • getTargetValue

        public float getTargetValue()
      • setStartValue

        public void setStartValue​(float startValue)
      • setTargetValue

        public void setTargetValue​(float targetValue)
      • setCustomTypeEvaluator

        public void setCustomTypeEvaluator​(TypeEvaluator<Float> evaluator)
      • getCustomTypeEvaluator

        public TypeEvaluator getCustomTypeEvaluator()
      • getTarget

        public T getTarget()
      • setBy

        public void setBy​(boolean by)
        Set this immediately after creating the animation. Failure to do so will result in incorrect target values.
      • isBy

        public boolean isBy()
      • getByValue

        public float getByValue()
      • getPath

        public Path getPath()
      • setCustomInterpolator

        public void setCustomInterpolator​(TimeInterpolator customInterpolator)
      • evaluateAt

        public float evaluateAt​(float progress)
      • getAccumulatedValue

        public at.wirecube.additiveanimations.additive_animator.AccumulatedAnimationValue getAccumulatedValue()
      • setAssociatedAnimationState

        public void setAssociatedAnimationState​(AnimationState<T> associatedAnimationStateId)
      • getAssociatedAnimationState

        public AnimationState<T> getAssociatedAnimationState()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object