public class

FadeAnimationCreator

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

Class Overview

Creates Animation objects that animate the getAlpha() property of a Series. The createEntryAnimation(Series) method creates an Animation that makes the series fade into view, going from transparent to fully opaque, while the createExitAnimation(Series) method creates an Animation that makes the series fade out of view, going from fully opaque to transparent.

This SeriesAnimationCreator will automatically assign appropriate Animation.Listener objects to the Animation to make the Series animate as described above.

Summary

Public Constructors
FadeAnimationCreator()
Public Methods
Animation<Float> createEntryAnimation(Series<?> series)
Creates an Animation that animates a given Series' getAlpha() value from 0.0 to 1.0, making it fade into view going from transparent to fully opaque.
Animation<Float> createExitAnimation(Series<?> series)
Creates an Animation that animates a given Series' getAlpha() value from 1.0 to 0.0, making it fade out of view going from fully opaque to transparent.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.shinobicontrols.charts.SeriesAnimationCreator

Public Constructors

public FadeAnimationCreator ()

Public Methods

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

Creates an Animation that animates a given Series' getAlpha() value from 0.0 to 1.0, making it fade into view going from transparent to fully opaque.

Parameters
series the Series to create the Animation for
Returns
  • an Animation where the given Series fades in from transparent to fully opaque

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

Creates an Animation that animates a given Series' getAlpha() value from 1.0 to 0.0, making it fade out of view going from fully opaque to transparent.

Parameters
series the Series to create the Animation for
Returns
  • an Animation where the given Series fades out from fully opaque to transparent