public class XYSeriesTransition extends SeriesTransition
EASING_IN, EASING_IN_OUT, EASING_LINEAR, EASING_OUT
Constructor and Description |
---|
XYSeriesTransition(ChartComponent chart,
XYSeries series)
Creates a new transition on the given chart and associated series.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup()
Cleans up after the transition is complete.
|
XYSeries |
getBuffer()
Gets the "buffer" series where values can be set.
|
XYSeries |
getSeries()
Gets the series whose values are to be animated by this transition.
|
void |
initTransition()
Initializes the transition.
|
protected void |
update(int progress)
Updates the series and renderer at the given progress position (0 to 100).
|
animate, animateChart, getChart, getDuration, getEasing, paint, setChart, setDuration, setEasing, updateChart
public XYSeriesTransition(ChartComponent chart, XYSeries series)
chart
- The ChartComponent that is being used to render the series.series
- The series whose data you wish to animate.public void initTransition()
initTransition
in class SeriesTransition
protected void cleanup()
cleanup
in class SeriesTransition
protected void update(int progress)
update
in class SeriesTransition
progress
- The progress position in the motion. (0-100).public XYSeries getBuffer()
public XYSeries getSeries()