- All Implemented Interfaces:
Serializable
,Comparable<LedMatrixComponent.Symbol>
,Constable
- Enclosing class:
- LedMatrixComponent
Mapping of various symbols to their respective 8x8 encoding.
Each symbol can be linked to an optional ASCII code which can be looked up using
getByChar(char)
.
All ASCII printable characters are based on the "IBM BIOS 8x8" font. All icons have been manually created for this component library and can not be referenced using ASCII characters.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionint
getAscii()
Returns the associated ASCII code for this symbol or -1 if not applicable.static LedMatrixComponent.Symbol
getByChar
(char c) Attempts to find a symbol associated to the given character and returns it.byte[]
getRows()
Returns the associated byte array to be used for displaying on the 8x8 LED matrix.static LedMatrixComponent.Symbol
Returns the enum constant of this class with the specified name.static LedMatrixComponent.Symbol[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEART
-
CROSS
-
SMILEY_HAPPY
-
SMILEY_SAD
-
SMILEY_SHOCKED
-
SMILEY_NEUTRAL
-
ARROW_UP
-
ARROW_DOWN
-
ARROW_LEFT
-
ARROW_RIGHT
-
A
-
B
-
C
-
D
-
E
-
F
-
G
-
H
-
I
-
J
-
K
-
L
-
M
-
N
-
O
-
P
-
Q
-
R
-
S
-
T
-
U
-
V
-
W
-
X
-
Y
-
Z
-
a
-
b
-
c
-
d
-
e
-
f
-
g
-
h
-
i
-
j
-
k
-
l
-
m
-
n
-
o
-
p
-
q
-
r
-
s
-
t
-
u
-
v
-
w
-
x
-
y
-
z
-
ZERO
-
ONE
-
TWO
-
THREE
-
FOUR
-
FIVE
-
SIX
-
SEVEN
-
EIGHT
-
NINE
-
SPACE
-
EXCLAMATION_MARK
-
DOUBLE_QUOTE
-
NUMBER_SIGN
-
DOLLAR
-
PERCENT
-
AMPERSAND
-
QUOTE_SINGLE
-
PARENTHESIS_LEFT
-
PARENTHESIS_RIGHT
-
ASTERISK
-
PLUS
-
COMMA
-
HYPHEN
-
PERIOD
-
SLASH
-
COLON
-
SEMICOLON
-
LESS
-
EQUAL
-
GREATER
-
QUESTION
-
AT
-
BRACKET_LEFT
-
BACKSLASH
-
BRACKET_RIGHT
-
CARET
-
UNDERSCORE
-
GRAVE
-
BRACE_LEFT
-
BAR
-
BRACE_RIGHT
-
TILDE
-
-
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
-
getAscii
public int getAscii()Returns the associated ASCII code for this symbol or -1 if not applicable.- Returns:
- ASCII code of symbol or -1
-
getRows
public byte[] getRows()Returns the associated byte array to be used for displaying on the 8x8 LED matrix.- Returns:
- Byte array with 8 items
-
getByChar
Attempts to find a symbol associated to the given character and returns it. Returns null if no symbol exists for the given character.- Parameters:
c
- ASCII character to lookup- Returns:
- Symbol if found or null
-