All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dashbuilder.renderer.chartjs.lib.options.HasAnimation Maven / Gradle / Ivy

The newest version!
package org.dashbuilder.renderer.chartjs.lib.options;

/**
 * Enum contains types of easing of chart animation
 */
public interface HasAnimation{

    final String ANIMATION = "animation";
    final String ANIMATION_STEPS = "animationSteps";
    final String ANIMATION_EASING = "animationEasing";


    /**
     * Specify should chart be animated or not
     * Default value is true
     * @param enabled
     */
    public void setAnimationEnabled(boolean enabled);

    /**
     * Particularly specify quality of animation
     * Default value is 60
     * @param steps
     */
    public void setAnimationSteps(int steps);

    /**
     * Specify animation easing
     * Default value is {@link Type#EASE_OUT_QUART}
     * @param type
     */
    public void setAnimationType(Type type);

    /**
     * Add animation callback to handle animation state changes
     * @param callback
     */
    public void addAnimationCallback(AnimationCallback callback);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy