Package org.pepstock.charba.client.enums
Enum DefaultTransitionMode
- java.lang.Object
-
- java.lang.Enum<DefaultTransitionMode>
-
- org.pepstock.charba.client.enums.DefaultTransitionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<DefaultTransitionMode>
,Key
,TransitionMode
public enum DefaultTransitionMode extends Enum<DefaultTransitionMode> implements TransitionMode
Cores animation update modes (transition) provided out of the box by CHART.JS.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
Uses to configure the animation when an element is hovering.DEFAULT
Uses to configure the animation to the default.HIDE
Uses to configure the animation when a data set is hidden using legend orIsChart.hide(int)
.NONE
Uses to configure the animation to ignore the animation.RESET
Uses to configure the animation when an element is resetting.RESIZE
Uses to configure the animation when an element is resizing.SHOW
Uses to configure the animation when a data set is shown using legend orIsChart.show(int)
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
is(String mode)
Returnstrue
if the argument is equals to a default animation mode.static boolean
is(TransitionMode mode)
Returnstrue
if the argument is equals to a default animation mode.String
value()
Returns the name value of propertystatic DefaultTransitionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultTransitionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final DefaultTransitionMode DEFAULT
Uses to configure the animation to the default.
-
ACTIVE
public static final DefaultTransitionMode ACTIVE
Uses to configure the animation when an element is hovering.
-
HIDE
public static final DefaultTransitionMode HIDE
Uses to configure the animation when a data set is hidden using legend orIsChart.hide(int)
.
-
RESET
public static final DefaultTransitionMode RESET
Uses to configure the animation when an element is resetting.
-
RESIZE
public static final DefaultTransitionMode RESIZE
Uses to configure the animation when an element is resizing.
-
SHOW
public static final DefaultTransitionMode SHOW
Uses to configure the animation when a data set is shown using legend orIsChart.show(int)
.
-
NONE
public static final DefaultTransitionMode NONE
Uses to configure the animation to ignore the animation.
-
-
Method Detail
-
values
public static DefaultTransitionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultTransitionMode c : DefaultTransitionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultTransitionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
Description copied from interface:Key
Returns the name value of property
-
is
public static boolean is(TransitionMode mode)
Returnstrue
if the argument is equals to a default animation mode.- Parameters:
mode
- the animation mode to check- Returns:
true
if the argument is equals to a default animation mode
-
is
public static boolean is(String mode)
Returnstrue
if the argument is equals to a default animation mode.- Parameters:
mode
- the animation mode to check- Returns:
true
if the argument is equals to a default animation mode
-
-