Class DefaultChartTransitions
- java.lang.Object
-
- org.pepstock.charba.client.defaults.chart.DefaultChartTransitions
-
- All Implemented Interfaces:
IsDefaultTransitions
public final class DefaultChartTransitions extends Object implements IsDefaultTransitions
Defaults for transitions option element, based on chart type.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description DefaultChartTransitions(IsDefaultTransitions transitions)
Creates the object by transitions option element instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsDefaultAnimationTransition
get(TransitionKey transition)
Returns an animation transition instance if stored in the animation options.boolean
has(TransitionKey transition)
Returnstrue
if an animation transition instance is stored in the animation options.
-
-
-
Constructor Detail
-
DefaultChartTransitions
public DefaultChartTransitions(IsDefaultTransitions transitions)
Creates the object by transitions option element instance.- Parameters:
transitions
- transitions option element instance.
-
-
Method Detail
-
has
public boolean has(TransitionKey transition)
Description copied from interface:IsDefaultTransitions
Returnstrue
if an animation transition instance is stored in the animation options.- Specified by:
has
in interfaceIsDefaultTransitions
- Parameters:
transition
- transition instance used to check in the animation options- Returns:
true
if an animation collection instance is stored in the animation options
-
get
public IsDefaultAnimationTransition get(TransitionKey transition)
Description copied from interface:IsDefaultTransitions
Returns an animation transition instance if stored in the animation options.- Specified by:
get
in interfaceIsDefaultTransitions
- Parameters:
transition
- transition instance used to get for animation options- Returns:
- an animation transition instance or
null
if does not exists
-
-