public class XYMultiSeriesTransition
- Object
- SeriesTransition
- XYMultiSeriesTransition
ImplementsAnimation
A transition to animate the values of a MultipleSeriesDataset (used by BarChart).
Constructors
public XYMultiSeriesTransition(ChartComponent chart, XYMultipleSeriesDataset dataset) | Creates a new transition for the given chart and dataset. |
Methods
protected void initTransition() | Initializes the transition for another iteration. |
protected void update(int progress) | Updates the renderer and model at the specified progress position of the animation. |
protected void cleanup() | Cleans up any settings in the transition. |
public XYMultipleSeriesDataset getBuffer() | Gets the buffer/cache for values. |
Inherited fields
Inherited methods
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.
Method details
initTransition
protected void initTransition()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.
update
protected void update(int progress)Updates the renderer and model at the specified progress position of
the animation. Meant to be overridden by subclasses.
cleanup
protected void cleanup()Cleans up any settings in the transition. Called after a transition
is complete. This is meant to be overridden by subclasses.
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.