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,AnimationCollectionKey,AnimationPropertyKey,IsTypedAnimationKey
public enum DefaultAnimationPropertyKey extends Enum<DefaultAnimationPropertyKey> implements AnimationPropertyKey
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_COLORUses to backgroundColor property to animate the element.BORDER_COLORUses to borderColor property to animate the element.BORDER_WIDTHUses to borderWidth property to animate the element.COLORUses to color property to animate the element.RADIUSUses to radius property to animate the element.TENSIONUses to tension property to animate the element.VISIBLEUses to visible property to animate the element.XUses to x property to animate the element.YUses to y property to animate the element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanis(String property)Returnstrueif the argument is equals to a default animation property.static booleanis(AnimationPropertyKey property)Returnstrueif the argument is equals to a default animation property.List<AnimationPropertyKey>properties()Returns the animation properties related to the collection.AnimationTypetype()Returns the animation type related to the property.Stringvalue()Returns the name value of propertystatic DefaultAnimationPropertyKeyvalueOf(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:KeyReturns the name value of property
-
type
public AnimationType type()
Returns the animation type related to the property.- Specified by:
typein interfaceIsTypedAnimationKey- Returns:
- the animation type related to the property
-
properties
public List<AnimationPropertyKey> properties()
Description copied from interface:AnimationCollectionKeyReturns the animation properties related to the collection.- Specified by:
propertiesin interfaceAnimationCollectionKey- Returns:
- the animation properties related to the collection
-
is
public static boolean is(AnimationPropertyKey property)
Returnstrueif the argument is equals to a default animation property.- Parameters:
property- the animation property to check- Returns:
trueif the argument is equals to a default animation property
-
is
public static boolean is(String property)
Returnstrueif the argument is equals to a default animation property.- Parameters:
property- the animation property to check- Returns:
trueif the argument is equals to a default animation property
-
-