public class

HorizontalTelevisionAnimationCreator

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

Class Overview

Creates Animation objects that animate the getScaleX() and getScaleY() properties of a Series, incorporating a delay element.

The createEntryAnimation(Series) method creates an Animation that first makes the Series appear to grow from its getPivotX() and getPivotY() points as a flat horizontal line until it reaches full scale in the X direction. It then expands vertically into view to its full scale in the Y direction.

The createExitAnimation(Series) method creates an Animation that first makes the Series appear to contract vertically until it is a flat horizontal line and then shrink horizontally until it disappears out of view at 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 LineSeries and BandSeries with an orientation of HORIZONTAL.

Summary

Public Constructors
HorizontalTelevisionAnimationCreator()
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 HorizontalTelevisionAnimationCreator ()

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. It incorporates a delay element that makes the Series grow as a flat, horizontal line first and then expand vertically into full view.

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. It incorporates a delay element that makes the Series contract vertically first to a flat, horizontal line first and then shrink horizontally out of view.

Parameters
series the Series to create the Animation for
Returns