Class XYMultiSeriesTransition

java.lang.Object
com.codename1.charts.transitions.SeriesTransition
com.codename1.charts.transitions.XYMultiSeriesTransition
All Implemented Interfaces:
Animation

public class XYMultiSeriesTransition extends SeriesTransition
A transition to animate the values of a MultipleSeriesDataset (used by BarChart).
  • Constructor Details

    • XYMultiSeriesTransition

      public XYMultiSeriesTransition(ChartComponent chart, XYMultipleSeriesDataset dataset)

      Creates a new transition for the given chart and dataset. The dataset must be rendered by the given chart for this to work correctly.

      Parameters
      • chart

      • dataset

  • Method Details

    • initTransition

      protected void initTransition()
      Description copied from class: SeriesTransition
      Initializes the transition for another iteration. This can be overridden by subclasses to provide their own initialization. This method will be called just prior to the transition taking place. IMPORTANT: Subclasses must make sure to call super.initTransition() so that the animation will be initialized properly.
      Overrides:
      initTransition in class SeriesTransition
    • update

      protected void update(int progress)
      Description copied from class: SeriesTransition

      Updates the renderer and model at the specified progress position of the animation. Meant to be overridden by subclasses.

      Parameters
      • progress: The progress of the animation (between 0 and 100).
      Specified by:
      update in class SeriesTransition
    • cleanup

      protected void cleanup()
      Description copied from class: SeriesTransition
      Cleans up any settings in the transition. Called after a transition is complete. This is meant to be overridden by subclasses.
      Overrides:
      cleanup in class SeriesTransition
    • getBuffer

      public XYMultipleSeriesDataset getBuffer()
      Gets the buffer/cache for values. Values set in the buffer will be applied to the target dataset when the transition takes place.