public class

VerticalTelevisionAnimationCreator

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

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 vertical line until it reaches full scale in the Y direction. It then expands horizontally into view to its full scale in the X direction.

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

Summary

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

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, vertical line first and then expand horizontally 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 horizontally first to a flat, vertical line first and then shrink vertically out of view.

Parameters
series the Series to create the Animation for
Returns