java.lang.Object
java.lang.Enum<LedMatrixComponent.ScrollMode>
com.pi4j.crowpi.components.LedMatrixComponent.ScrollMode
- All Implemented Interfaces:
Serializable
,Comparable<LedMatrixComponent.ScrollMode>
,Constable
- Enclosing class:
- LedMatrixComponent
Specifies which mode should be used while scrolling the LED matrix.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNormally scroll the LED matrix in one direction, causing one row or column to be empty.Scroll the LED matrix in one direction and replace the now empty row or column with values from a new buffer.Scroll the LED matrix in one direction and wrap the row or column around to the other side. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static LedMatrixComponent.ScrollMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Normally scroll the LED matrix in one direction, causing one row or column to be empty. -
ROTATE
Scroll the LED matrix in one direction and wrap the row or column around to the other side. -
REPLACE
Scroll the LED matrix in one direction and replace the now empty row or column with values from a new buffer. This can be used to gradually transition from one buffer to another via scrolling.
-
-
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
-