Package org.pepstock.charba.client.enums
Enum AnimationType
- java.lang.Object
-
- java.lang.Enum<AnimationType>
-
- org.pepstock.charba.client.enums.AnimationType
-
- All Implemented Interfaces:
Serializable
,Comparable<AnimationType>
,Key
public enum AnimationType extends Enum<AnimationType> implements Key
Type of property in the animation object to determine the interpolator used.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic AnimationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnimationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMBER
public static final AnimationType NUMBER
Uses a number to interpolate animation.
-
COLOR
public static final AnimationType COLOR
Uses a color to interpolate animation.
-
BOOLEAN
public static final AnimationType BOOLEAN
Uses a color to interpolate animation.
-
UNKNOWN
public static final AnimationType UNKNOWN
HWne the animation collection type is not set.
-
-
Method Detail
-
values
public static AnimationType[] 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 (AnimationType c : AnimationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnimationType 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
-
-