Class AnimationCollection

    • Method Detail

      • setType

        public void setType​(AnimationType type)
        Sets the type of from property and determines the interpolator used.
        Parameters:
        type - the type of from property and determines the interpolator used.
      • getType

        public AnimationType getType()
        Returns the type of from property and determines the interpolator used.
        Specified by:
        getType in interface IsDefaultAnimationCollection
        Returns:
        the type of from property and determines the interpolator used.
      • setFrom

        public void setFrom​(boolean from)
        Sets the end value for the animation as number.
        Parameters:
        from - the start end for the animation as number.
      • setFrom

        public void setFrom​(double from)
        Sets the start value for the animation as number.
        Parameters:
        from - the start value for the animation as number.
      • setFrom

        public void setFrom​(String from)
        Sets the start value for the animation as color string.
        Parameters:
        from - the start value for the animation as color string.
      • setFrom

        public void setFrom​(IsColor from)
        Sets the start value for the animation as color.
        Parameters:
        from - the start value for the animation as color.
      • getFrom

        public double getFrom()
        Returns the start value for the animation as number.
        Specified by:
        getFrom in interface IsDefaultAnimationCollection
        Returns:
        the start value for the animation as number.
      • getFromAsBoolean

        public boolean getFromAsBoolean()
        Returns the start value for the animation as number.
        Specified by:
        getFromAsBoolean in interface IsDefaultAnimationCollection
        Returns:
        the start value for the animation as number.
      • getFromAsColor

        public IsColor getFromAsColor()
        Returns the start value for the animation as color.
        Returns:
        the start value for the animation as color.
      • setTo

        public void setTo​(boolean to)
        Sets the end value for the animation as number.
        Parameters:
        to - the end value for the animation as number.
      • setTo

        public void setTo​(double to)
        Sets the end value for the animation as number.
        Parameters:
        to - the end value for the animation as number.
      • setTo

        public void setTo​(String to)
        Sets the end value for the animation as color string.
        Parameters:
        to - the end value for the animation as color string.
      • setTo

        public void setTo​(IsColor to)
        Sets the end value for the animation as color.
        Parameters:
        to - the end value for the animation as color.
      • getTo

        public double getTo()
        Returns the end value for the animation as number.
        Specified by:
        getTo in interface IsDefaultAnimationCollection
        Returns:
        the end value for the animation as number.
      • getToAsBoolean

        public boolean getToAsBoolean()
        Returns the end value for the animation as number.
        Specified by:
        getToAsBoolean in interface IsDefaultAnimationCollection
        Returns:
        the end value for the animation as number.
      • getToAsColor

        public IsColor getToAsColor()
        Returns the end value for the animation as color.
        Returns:
        the end value for the animation as color.
      • setProperties

        public void setProperties​(String... properties)
        Sets the properties to be defined in the animation collection.
        Parameters:
        properties - the properties to be defined in the animation collection
      • setProperties

        public void setProperties​(Key... properties)
        Sets the properties to be defined in the animation collection.
        Parameters:
        properties - the properties to be defined in the animation collection
      • setProperties

        public void setProperties​(List<Key> properties)
        Sets the properties to be defined in the animation collection.
        Parameters:
        properties - the properties to be defined in the animation collection
      • getProperties

        public List<Key> getProperties()
        Returns the properties defined in the animation collection.
        Specified by:
        getProperties in interface IsDefaultAnimationCollection
        Returns:
        the properties defined in the animation collection
      • getPropertiesAsString

        public List<String> getPropertiesAsString()
        Returns the properties defined in the animation collection.
        Returns:
        the properties defined in the animation collection
      • setInterpolator

        public void setInterpolator​(NativeInterpolator interpolator)
        Sets a custom animation interpolator in java script code.
        Parameters:
        interpolator - a custom animation interpolator in java script code.
      • setFrom

        public void setFrom​(FromCallback fromCallback)
        Sets the start value for the animation by a callback.
        Parameters:
        fromCallback - the callback instance to use to set the start value for the animation
      • setFrom

        public void setFrom​(NativeCallback fromCallback)
        Sets the start value for the animation by a callback.
        Parameters:
        fromCallback - the callback instance to use to set the start value for the animation
      • getToCallback

        public ToCallback getToCallback()
        Returns the callback to set the end value for the animation.
        Specified by:
        getToCallback in interface IsDefaultAnimationCollection
        Returns:
        the callback instance to use to set the end value for the animation
      • setTo

        public void setTo​(ToCallback toCallback)
        Sets the end value for the animation by a callback.
        Parameters:
        toCallback - the callback instance to use to set the end value for the animation
      • setTo

        public void setTo​(NativeCallback toCallback)
        Sets the end value for the animation by a callback.
        Parameters:
        toCallback - the callback instance to use to set the end value for the animation
      • 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