Enum Class AnimationMode
- All Implemented Interfaces:
Serializable,Comparable<AnimationMode>,java.lang.constant.Constable
The mode of
Animation-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheAnimation.getCurrentFrame(long)} will return "null" if the animation is completed (Animation.isFirstRun(long)returns false)TheAnimation.getCurrentFrame(long)} will return the last element of theAnimation.getFrames()if the animation is completed (Animation.isFirstRun(long)returns false)The frame will be repeated -
Method Summary
Modifier and TypeMethodDescriptionstatic AnimationModeReturns the enum constant of this class with the specified name.static AnimationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REPEAT
The frame will be repeated -
ONE_TIME
TheAnimation.getCurrentFrame(long)} will return "null" if the animation is completed (Animation.isFirstRun(long)returns false) -
ONE_TIME_KEEP_LAST
TheAnimation.getCurrentFrame(long)} will return the last element of theAnimation.getFrames()if the animation is completed (Animation.isFirstRun(long)returns false)
-
-
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
-