public class XYSeriesTransition

  1. Object
  2. SeriesTransition
  3. XYSeriesTransition

ImplementsAnimation

A transition for enabling animations between different values in an XYSeries.

Constructors

public XYSeriesTransition(ChartComponent chart, XYSeries series)Creates a new transition on the given chart and associated series.

Methods

public void initTransition()Initializes the transition.
protected void cleanup()Cleans up after the transition is complete.
protected void update(int progress)Updates the series and renderer at the given progress position (0 to 100).
public XYSeries getBuffer()Gets the “buffer” series where values can be set.
public XYSeries getSeries()Gets the series whose values are to be animated by this transition.

Inherited fields

Inherited methods

Constructor details

XYSeriesTransition

public XYSeriesTransition(ChartComponent chart, XYSeries series)
Creates a new transition on the given chart and associated series. The series should be one of the series rendered by the given chart.

Parameters

chart ChartComponent
The ChartComponent that is being used to render the series.
series XYSeries
The series whose data you wish to animate.

Method details

initTransition

public void initTransition()
Initializes the transition. This can be overridden by subclasses to provide their own functionality to be executed just before the transition occurs.

cleanup

protected void cleanup()
Cleans up after the transition is complete.

update

protected void update(int progress)
Updates the series and renderer at the given progress position (0 to 100).

Parameters

progress int
The progress position in the motion. (0-100).

getBuffer

public XYSeries getBuffer()
Gets the “buffer” series where values can be set. Any values set on the buffer will be applied to the target series during the course of the transition.

getSeries

public XYSeries getSeries()
Gets the series whose values are to be animated by this transition.