Enum Class Curve
- All Implemented Interfaces:
Serializable
,Comparable<Curve>
,Constable
The function that will be used to animate the transition of given properties between two states of an
Entity
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionStart changing slowly and finish fast.Start changing slowly, accelerate, then slowly again.Start changing fast and finish slowly.The value quickly increases and wobbles around the final value before settling.Don't animate the transition, immediately use the new value to be used in the display.The default simple linear interpolation.Don't animate the transition, wait for this commit's frame time for the new value to be used in the display. -
Method Summary
-
Enum Constant Details
-
LINEAR
The default simple linear interpolation. -
NONE
Don't animate the transition, wait for this commit's frame time for the new value to be used in the display. -
IMMEDIATE
Don't animate the transition, immediately use the new value to be used in the display. -
EASE_IN
Start changing slowly and finish fast. -
EASE_OUT
Start changing fast and finish slowly. -
EASE_IN_AND_OUT
Start changing slowly, accelerate, then slowly again. -
ELASTIC
The value quickly increases and wobbles around the final value before settling.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-