Class AnimationItem


  • public final class AnimationItem
    extends NativeObjectContainer
    The onProgress and onComplete events are useful for synchronizing an external draw to the chart animation.
    This is a wrapper of the CHART.JS item with all needed info.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • AnimationItem

        public AnimationItem​(ConfigurationEnvelop<NativeObject> envelop)
        Creates the item using an envelop with native java script object which contains all properties.
        It is called from configuration package.
        Parameters:
        envelop - envelop with native java script object which contains all properties.
    • Method Detail

      • getChart

        public IsChart getChart()
        Returns the CHARBA chart instance.
        Returns:
        the CHARBA chart instance
      • isInitial

        public boolean isInitial()
        Returns true for the initial animation of the chart.
        Returns:
        true for the initial animation of the chart
      • getCurrentStep

        public double getCurrentStep()
        Returns the current animation frame number.
        Returns:
        the current animation frame number.
      • getNumSteps

        public double getNumSteps()
        Returns the total number of animation frames.
        Returns:
        the total number of animation frames.