Class Animation

    • Method Detail

      • 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.
      • getDefaultValues

        protected final D getDefaultValues()
        Returns the default values.
        Returns:
        the default values
      • getScope

        public final String getScope()
        Description copied from interface: HasCallbackScope
        Returns the scope of the options, which is the options are used for defaults, chart defaults or chart.
        Specified by:
        getScope in interface HasCallbackScope
        Returns:
        the scope of the options
      • setEasing

        public final void setEasing​(Easing easing)
        Sets the animation easing.
        Parameters:
        easing - animation easing.
      • setDuration

        public final void setDuration​(int milliseconds)
        Sets the number of milliseconds an animation takes.
        Parameters:
        milliseconds - the number of milliseconds an animation takes.
      • getDuration

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

        public final void setDelay​(int delay)
        Sets the delay before starting the animations.
        Parameters:
        delay - the delay before starting the animations
      • getDelay

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

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

        public final 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.
        Parameters:
        durationCallback - the callback instance to use
      • setDuration

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

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

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

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

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

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

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