Package org.pepstock.charba.client.enums
Enum DefaultAnimationPropertyKey
- java.lang.Object
-
- java.lang.Enum<DefaultAnimationPropertyKey>
-
- org.pepstock.charba.client.enums.DefaultAnimationPropertyKey
-
- All Implemented Interfaces:
Serializable
,Comparable<DefaultAnimationPropertyKey>
,Key
public enum DefaultAnimationPropertyKey extends Enum<DefaultAnimationPropertyKey> implements Key
Cores animation properties, to use to animate, provided out of the box by CHART.JS.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKGROUND_COLOR
Uses to backgroundColor property to animate the element.BORDER_COLOR
Uses to borderColor property to animate the element.BORDER_WIDTH
Uses to borderWidth property to animate the element.COLOR
Uses to color property to animate the element.RADIUS
Uses to radius property to animate the element.TENSION
Uses to tension property to animate the element.VISIBLE
Uses to visible property to animate the element.X
Uses to x property to animate the element.Y
Uses to y property to animate the element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
is(String property)
Returnstrue
if the argument is equals to a default animation property.String
value()
Returns the name value of propertystatic DefaultAnimationPropertyKey
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultAnimationPropertyKey[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X
public static final DefaultAnimationPropertyKey X
Uses to x property to animate the element.
-
Y
public static final DefaultAnimationPropertyKey Y
Uses to y property to animate the element.
-
BORDER_WIDTH
public static final DefaultAnimationPropertyKey BORDER_WIDTH
Uses to borderWidth property to animate the element.
-
RADIUS
public static final DefaultAnimationPropertyKey RADIUS
Uses to radius property to animate the element.
-
TENSION
public static final DefaultAnimationPropertyKey TENSION
Uses to tension property to animate the element.
-
BACKGROUND_COLOR
public static final DefaultAnimationPropertyKey BACKGROUND_COLOR
Uses to backgroundColor property to animate the element.
-
BORDER_COLOR
public static final DefaultAnimationPropertyKey BORDER_COLOR
Uses to borderColor property to animate the element.
-
COLOR
public static final DefaultAnimationPropertyKey COLOR
Uses to color property to animate the element.
-
VISIBLE
public static final DefaultAnimationPropertyKey VISIBLE
Uses to visible property to animate the element.
-
-
Method Detail
-
values
public static DefaultAnimationPropertyKey[] 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 (DefaultAnimationPropertyKey c : DefaultAnimationPropertyKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultAnimationPropertyKey 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(String property)
Returnstrue
if the argument is equals to a default animation property.- Parameters:
property
- the animation property to check- Returns:
true
if the argument is equals to a default animation property
-
-