Class UpdateConfiguration

    • Field Detail

      • UPDATE

        public static final TransitionMode UPDATE
        Default animation mode key, used for chart updating.
    • Constructor Detail

      • UpdateConfiguration

        public UpdateConfiguration()
        Creates an empty animation mode to use for chart updating.
    • 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.
      • 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.
      • 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.
      • setDuration

        public void setDuration​(DurationCallback durationCallback)
        Description copied from interface: IsAnimation
        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)
        Description copied from interface: IsAnimation
        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)
        Description copied from interface: IsAnimation
        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)
        Description copied from interface: IsAnimation
        Sets the animation easing by a callback.
        Specified by:
        setEasing in interface IsAnimation
        Parameters:
        easingCallback - the callback instance to use
      • setDuration

        public void setDuration​(NativeCallback durationCallback)
        Description copied from interface: IsAnimation
        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​(NativeCallback delayCallback)
        Description copied from interface: IsAnimation
        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​(NativeCallback loopCallback)
        Description copied from interface: IsAnimation
        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​(NativeCallback easingCallback)
        Description copied from interface: IsAnimation
        Sets the animation easing by a callback.
        Specified by:
        setEasing in interface IsAnimation
        Parameters:
        easingCallback - the callback instance to use
      • setEnabled

        public void setEnabled​(Key collection,
                               boolean enabled)
        Enables or disables an animation collection instance in the animation options.
        Specified by:
        setEnabled in interface IsAnimations
        Parameters:
        collection - collection instance used to check in the animation options
        enabled - if true it enables an animation collection
      • isEnabled

        public boolean isEnabled​(Key collection)
        Returns true if the animation collection is enabled, otherwise false.
        Specified by:
        isEnabled in interface IsAnimations
        Parameters:
        collection - collection instance used to check in the animation options
        Returns:
        true if the animation collection is enabled, otherwise false
      • contains

        public boolean contains​(Key collection)
        Returns true if an animation collection instance is stored in the animation options.
        Specified by:
        contains in interface IsDefaultAnimations
        Parameters:
        collection - collection instance used to check in the animation options
        Returns:
        true if an animation collection instance is stored in the animation options
      • get

        public AnimationCollection get​(Key collection)
        Returns an animation collection instance if stored in the animation options.
        Specified by:
        get in interface IsAnimations
        Specified by:
        get in interface IsDefaultAnimations
        Parameters:
        collection - collection instance used to get for animation options
        Returns:
        an animation collection instance or null if does not exists
      • set

        public void set​(Key collection,
                        AnimationCollection animationCollection)
        Sets an animation collection instance to store in the animation options.
        Specified by:
        set in interface IsAnimations
        Parameters:
        collection - collection instance used to get for animation options
        animationCollection - an animation collection instance to set
      • create

        public AnimationCollection create​(Key collection)
        Creates an animation collection instance and stores in the animation options.
        Specified by:
        create in interface IsAnimations
        Parameters:
        collection - collection key used to create the animation collections
        Returns:
        a collection animation options
      • delete

        public void delete​(Key collection)
        Removes an animation collection previously added.
        Specified by:
        delete in interface IsAnimations
        Parameters:
        collection - collection instance used to remove from animation options