Class XYMultiSeriesTransition
java.lang.Object
com.codename1.charts.transitions.SeriesTransition
com.codename1.charts.transitions.XYMultiSeriesTransition
- All Implemented Interfaces:
Animation
A transition to animate the values of a MultipleSeriesDataset (used by BarChart).
-
Field Summary
Fields inherited from class SeriesTransition
EASING_IN, EASING_IN_OUT, EASING_LINEAR, EASING_OUT -
Constructor Summary
ConstructorsConstructorDescriptionXYMultiSeriesTransition(ChartComponent chart, XYMultipleSeriesDataset dataset) Creates a new transition for the given chart and dataset. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanup()Cleans up any settings in the transition.Gets the buffer/cache for values.protected voidInitializes the transition for another iteration.protected voidupdate(int progress) Updates the renderer and model at the specified progress position of the animation.Methods inherited from class SeriesTransition
animate, animateChart, getChart, getDuration, getEasing, paint, setChart, setDuration, setEasing, updateChart
-
Constructor Details
-
XYMultiSeriesTransition
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:SeriesTransitionInitializes 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:
initTransitionin classSeriesTransition
-
update
protected void update(int progress) Description copied from class:SeriesTransitionUpdates 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:
updatein classSeriesTransition
-
cleanup
protected void cleanup()Description copied from class:SeriesTransitionCleans up any settings in the transition. Called after a transition is complete. This is meant to be overridden by subclasses.- Overrides:
cleanupin classSeriesTransition
-
getBuffer
Gets the buffer/cache for values. Values set in the buffer will be applied to the target dataset when the transition takes place.
-