Enum Class LoopMode
- All Implemented Interfaces:
Serializable, Comparable<LoopMode>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStops on its last frame and stays there until something else plays.Starts over, forever or a number of times.Stops; its layer then goes back to what it was doing (its driver, the next motion, or rest).Plays to the end, then backwards to the start, and again. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable LoopModeBy name ("loop","hold_on_last_frame"and"hold"are the same); null if unknown.static LoopModeReturns the enum constant of this class with the specified name.static LoopMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONCE
Stops; its layer then goes back to what it was doing (its driver, the next motion, or rest). -
LOOP
Starts over, forever or a number of times. -
HOLD
Stops on its last frame and stays there until something else plays. -
PING_PONG
Plays to the end, then backwards to the start, and again.
-
-
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
-
byName
-