Interface HasAnimation
-
- All Known Implementing Classes:
AbstractPieOptions,BarOptions,BubbleMapOptions,BubbleOptions,ChoroplethOptions,ConfigurationOptions,DoughnutOptions,GaugeOptions,HorizontalBarOptions,LineOptions,MatrixOptions,MeterOptions,PieOptions,PolarAreaOptions,RadarOptions,SankeyOptions,ScalesOptions,ScatterOptions,StackedOptions,TimeSeriesBarOptions,TimeSeriesLineOptions,Tooltips,TreeMapOptions,TypedDataset,VerticalLineOptions
public interface HasAnimationDefines a configuration element which is managing the ANIMATION options.
It has being used in the options and datasets instances where ANIMATION is required.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AnimationgetAnimation()Returns the animation element.AnimationContainergetAnimationContainer()Returns an animation container instance to use in the default methods of this interface.default AnimationsgetAnimations()Returns the animations collection element.default TransitionsgetTransitions()Returns the animation transition element.default booleanisAnimationEnabled()Returnstrueif animation is enabled, otherwisefalse.default voidsetAnimationEnabled(boolean enabled)Enables or disables the animation.
-
-
-
Method Detail
-
getAnimationContainer
AnimationContainer getAnimationContainer()
Returns an animation container instance to use in the default methods of this interface.- Returns:
- an animation container instance
-
getAnimation
default Animation getAnimation()
Returns the animation element.- Returns:
- the animation
-
getAnimations
default Animations getAnimations()
Returns the animations collection element.- Returns:
- the animations collection
-
getTransitions
default Transitions getTransitions()
Returns the animation transition element.- Returns:
- the animation transition
-
setAnimationEnabled
default void setAnimationEnabled(boolean enabled)
Enables or disables the animation.- Parameters:
enabled- iftruethe animation is enabled otherwisefalseto disable it.
-
isAnimationEnabled
default boolean isAnimationEnabled()
Returnstrueif animation is enabled, otherwisefalse.- Returns:
trueif animation is enabled, otherwisefalse
-
-