public interface

SeriesAnimationCreator

com.shinobicontrols.charts.SeriesAnimationCreator<T, U>
Known Indirect Subclasses

Class Overview

Defines how to create entry and exit Animations for a Series. This allows Animations to be created dynamically as and when needed, and provides the opportunity to set up any required Animation.Listener objects.

An entry Animation is defined as one that brings a Series into view. An exit Animation is defined as one that takes a Series out of view.

The SeriesAnimator uses a SeriesAnimationCreator to create the necessary entry and exit Animations for the Series it has been asked to animate. Of course, there is no restriction on using a SeriesAnimationCreator elsewhere; it can be a convenient way to create an Animation for a Series, with the necessary Animation.Listeners already set up, when manually running it with an AnimationRunner.

The SeriesAnimationCreator has two generic parameters: the first is the type of the property being animated in the entry Animation and the second is the type of the property being animated in the exit Animation. Usually these will be the same but the API does allow for them to be different where desired.

Summary

Public Methods
abstract Animation<T> createEntryAnimation(Series<?> series)
Defines how to create an Animation for the given Series for situations where it is being brought into view, for example when showing a hidden Series.
abstract Animation<U> createExitAnimation(Series<?> series)
Defines how to create an Animation for the given Series for situations where it is being taken out of view, for example when hiding a visible Series.

Public Methods

public abstract Animation<T> createEntryAnimation (Series<?> series)

Defines how to create an Animation for the given Series for situations where it is being brought into view, for example when showing a hidden Series.

Parameters
series the Series to create the Animation for
Returns
  • the Animation for the given Series for situations where it is brought into view

public abstract Animation<U> createExitAnimation (Series<?> series)

Defines how to create an Animation for the given Series for situations where it is being taken out of view, for example when hiding a visible Series.

Parameters
series the Series to create the Animation for
Returns
  • the Animation for the given Series for situations where it is taken out of view