public class

GrowAnimationCreator

extends Object
implements SeriesAnimationCreator<T, U>
java.lang.Object
   ↳ com.shinobicontrols.charts.GrowAnimationCreator

Class Overview

Creates Animation objects that animate the getScaleX() and getScaleY() properties of a Series. The createEntryAnimation(Series) method creates an Animation that makes the series appear to grow from its getPivotX() and getPivotY() points to full scale, while the createExitAnimation(Series) method creates an Animation that makes the series appear to shrink from full scale to its getPivotX() and getPivotY() points.

This SeriesAnimationCreator will automatically assign appropriate Animation.Listener objects to the Animation to make the Series animate as described above. In order to make the Series animate from its center the pivot values should be set to 0.5f.

This is the default SeriesAnimationCreator as returned by newDefaultSeriesAnimationCreator(Class) for PieSeries and DonutSeries.

Summary

Public Constructors
GrowAnimationCreator()
Public Methods
Animation<Float> createEntryAnimation(Series<?> series)
Creates an Animation that animates a given Series' getScaleX() and getScaleY() values from 0.0 to 1.0, making it appear to grow from its getPivotX() and getPivotY() points.
Animation<Float> createExitAnimation(Series<?> series)
Creates an Animation that animates a given Series' getScaleX() and getScaleY() values from 1.0 to 0.0, making it appear to shrink to its getPivotX() and getPivotY() points.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.shinobicontrols.charts.SeriesAnimationCreator

Public Constructors

public GrowAnimationCreator ()

Public Methods

public Animation<Float> createEntryAnimation (Series<?> series)

Creates an Animation that animates a given Series' getScaleX() and getScaleY() values from 0.0 to 1.0, making it appear to grow from its getPivotX() and getPivotY() points.

Parameters
series the Series to create the Animation for
Returns

public Animation<Float> createExitAnimation (Series<?> series)

Creates an Animation that animates a given Series' getScaleX() and getScaleY() values from 1.0 to 0.0, making it appear to shrink to its getPivotX() and getPivotY() points.

Parameters
series the Series to create the Animation for
Returns