Class Animation

    • Method Detail

      • setEasing

        public void setEasing​(Easing easing)
        Sets the animation easing.
        Specified by:
        setEasing in interface IsAnimation
        Parameters:
        easing - animation easing.
      • setDuration

        public void setDuration​(int milliseconds)
        Sets the number of milliseconds an animation takes.
        Specified by:
        setDuration in interface IsAnimation
        Parameters:
        milliseconds - the number of milliseconds an animation takes.
      • getDuration

        public int getDuration()
        Returns the number of milliseconds an animation takes.
        Specified by:
        getDuration in interface IsDefaultBaseAnimation
        Returns:
        the number of milliseconds an animation takes.
      • setAnimateRotate

        public void setAnimateRotate​(boolean animateRotate)
        If true, the chart will animate in with a rotation animation.
        Specified by:
        setAnimateRotate in interface IsAnimation
        Parameters:
        animateRotate - If true, the chart will animate in with a rotation animation.
      • isAnimateRotate

        public boolean isAnimateRotate()
        If true, the chart will animate in with a rotation animation.
        Specified by:
        isAnimateRotate in interface IsDefaultAnimation
        Returns:
        If true, the chart will animate in with a rotation animation.
      • setAnimateScale

        public void setAnimateScale​(boolean animateScale)
        If true, will animate scaling the chart from the center outwards.
        Specified by:
        setAnimateScale in interface IsAnimation
        Parameters:
        animateScale - If true, will animate scaling the chart from the center outwards.
      • isAnimateScale

        public boolean isAnimateScale()
        If true, will animate scaling the chart from the center outwards.
        Specified by:
        isAnimateScale in interface IsDefaultAnimation
        Returns:
        If true, will animate scaling the chart from the center outwards.
      • setDelay

        public void setDelay​(int delay)
        Sets the delay before starting the animations.
        Specified by:
        setDelay in interface IsAnimation
        Parameters:
        delay - the delay before starting the animations
      • getDelay

        public int getDelay()
        Returns the delay before starting the animations.
        Specified by:
        getDelay in interface IsDefaultBaseAnimation
        Returns:
        the delay before starting the animations
      • setLoop

        public void setLoop​(boolean loop)
        If set to true, loops the animations endlessly.
        Specified by:
        setLoop in interface IsAnimation
        Parameters:
        loop - true if loops the animations endlessly.
      • isLoop

        public boolean isLoop()
        If set to true, loops the animations endlessly.
        Specified by:
        isLoop in interface IsDefaultBaseAnimation
        Returns:
        true if loops the animations endlessly.
      • setDuration

        public void setDuration​(DurationCallback durationCallback)
        Sets the number of milliseconds an animation takes by a callback.
        Specified by:
        setDuration in interface IsAnimation
        Parameters:
        durationCallback - the callback instance to use
      • setDuration

        public void setDuration​(NativeCallback durationCallback)
        Sets the number of milliseconds an animation takes by a callback.
        Specified by:
        setDuration in interface IsAnimation
        Parameters:
        durationCallback - the callback instance to use
      • setDelay

        public void setDelay​(DelayCallback delayCallback)
        Sets the delay before starting the animations by a callback.
        Specified by:
        setDelay in interface IsAnimation
        Parameters:
        delayCallback - the callback instance to use
      • setDelay

        public void setDelay​(NativeCallback delayCallback)
        Sets the delay before starting the animations by a callback.
        Specified by:
        setDelay in interface IsAnimation
        Parameters:
        delayCallback - the callback instance to use
      • setLoop

        public void setLoop​(LoopCallback loopCallback)
        Sets to loop the animations endlessly by a callback.
        Specified by:
        setLoop in interface IsAnimation
        Parameters:
        loopCallback - the callback instance to use
      • setLoop

        public void setLoop​(NativeCallback loopCallback)
        Sets to loop the animations endlessly by a callback.
        Specified by:
        setLoop in interface IsAnimation
        Parameters:
        loopCallback - the callback instance to use
      • setEasing

        public void setEasing​(EasingCallback easingCallback)
        Sets the animation easing by a callback.
        Specified by:
        setEasing in interface IsAnimation
        Parameters:
        easingCallback - the callback instance to use
      • setEasing

        public void setEasing​(NativeCallback easingCallback)
        Sets the animation easing by a callback.
        Specified by:
        setEasing in interface IsAnimation
        Parameters:
        easingCallback - the callback instance to use