Package 

Class ChartAnimator


  • 
    public class ChartAnimator
    
                        

    Object responsible for all animations in the Chart. Animations require API level 11.

    • Method Summary

      Modifier and Type Method Description
      void animateX(int durationMillis) Animates values along the X axis, in a linear fashion.
      void animateX(int durationMillis, Easing.EasingFunction easing) Animates values along the X axis.
      void animateXY(int durationMillisX, int durationMillisY) Animates values along both the X and Y axes, in a linear fashion.
      void animateXY(int durationMillisX, int durationMillisY, Easing.EasingFunction easing) Animates values along both the X and Y axes.
      void animateXY(int durationMillisX, int durationMillisY, Easing.EasingFunction easingX, Easing.EasingFunction easingY) Animates values along both the X and Y axes.
      void animateY(int durationMillis) Animates values along the Y axis, in a linear fashion.
      void animateY(int durationMillis, Easing.EasingFunction easing) Animates values along the Y axis.
      float getPhaseY() Gets the Y axis phase of the animation.
      void setPhaseY(float phase) Sets the Y axis phase of the animation.
      float getPhaseX() Gets the X axis phase of the animation.
      void setPhaseX(float phase) Sets the X axis phase of the animation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • animateX

        @RequiresApi(value = 11) void animateX(int durationMillis)

        Animates values along the X axis, in a linear fashion.

        Parameters:
        durationMillis - animation duration
      • animateX

        @RequiresApi(value = 11) void animateX(int durationMillis, Easing.EasingFunction easing)

        Animates values along the X axis.

        Parameters:
        durationMillis - animation duration
        easing - EasingFunction
      • animateXY

        @RequiresApi(value = 11) void animateXY(int durationMillisX, int durationMillisY)

        Animates values along both the X and Y axes, in a linear fashion.

        Parameters:
        durationMillisX - animation duration along the X axis
        durationMillisY - animation duration along the Y axis
      • animateXY

        @RequiresApi(value = 11) void animateXY(int durationMillisX, int durationMillisY, Easing.EasingFunction easing)

        Animates values along both the X and Y axes.

        Parameters:
        durationMillisX - animation duration along the X axis
        durationMillisY - animation duration along the Y axis
        easing - EasingFunction for both axes
      • animateXY

        @RequiresApi(value = 11) void animateXY(int durationMillisX, int durationMillisY, Easing.EasingFunction easingX, Easing.EasingFunction easingY)

        Animates values along both the X and Y axes.

        Parameters:
        durationMillisX - animation duration along the X axis
        durationMillisY - animation duration along the Y axis
        easingX - EasingFunction for the X axis
        easingY - EasingFunction for the Y axis
      • animateY

        @RequiresApi(value = 11) void animateY(int durationMillis)

        Animates values along the Y axis, in a linear fashion.

        Parameters:
        durationMillis - animation duration
      • animateY

        @RequiresApi(value = 11) void animateY(int durationMillis, Easing.EasingFunction easing)

        Animates values along the Y axis.

        Parameters:
        durationMillis - animation duration
        easing - EasingFunction
      • getPhaseY

         float getPhaseY()

        Gets the Y axis phase of the animation.

      • setPhaseY

         void setPhaseY(float phase)

        Sets the Y axis phase of the animation.

        Parameters:
        phase - float value between 0 - 1
      • getPhaseX

         float getPhaseX()

        Gets the X axis phase of the animation.

      • setPhaseX

         void setPhaseX(float phase)

        Sets the X axis phase of the animation.

        Parameters:
        phase - float value between 0 - 1