Enum DefaultFontInfo
- java.lang.Object
-
- java.lang.Enum<DefaultFontInfo>
-
- com.djrapitops.plan.utilities.chat.DefaultFontInfo
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DefaultFontInfo>
public enum DefaultFontInfo extends java.lang.Enum<DefaultFontInfo>
Contains width of characters in the chat with default font.Original code form https://www.spigotmc.org/threads/free-code-sending-perfectly-centered-chat-message.95872/page-2
-
-
Enum Constant Summary
Enum Constants Enum Constant Description a
A
AMPERSAND
ASTERISK
AT_SYMBOL
b
B
BACK_SLASH
c
C
COLON
COMMA
d
D
DEFAULT
DOLLAR_SIGN
DOUBLE_QUOTE
e
E
EQUALS_SIGN
EXCLAMATION_POINT
f
F
g
G
h
H
i
I
j
J
k
K
l
L
LEFT_ARROW
LEFT_BRACKET
LEFT_CURL_BRACE
LEFT_PARENTHESIS
LINE
m
M
MINUS
n
N
NUM_0
NUM_1
NUM_2
NUM_3
NUM_4
NUM_5
NUM_6
NUM_7
NUM_8
NUM_9
NUM_SIGN
o
O
p
P
PERCENT
PERIOD
PLUS_SIGN
q
Q
QUESTION_MARK
r
R
RIGHT_ARROW
RIGHT_BRACKET
RIGHT_CURL_BRACE
RIGHT_PARENTHESIS
s
S
SEMI_COLON
SINGLE_QUOTE
SLASH
SPACE
t
T
TICK
TILDE
u
U
UNDERSCORE
UP_ARROW
v
V
w
W
x
X
y
Y
z
Z
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBoldLength()
char
getCharacter()
static DefaultFontInfo
getDefaultFontInfo(char c)
int
getLength()
static DefaultFontInfo
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DefaultFontInfo[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A
public static final DefaultFontInfo A
-
a
public static final DefaultFontInfo a
-
B
public static final DefaultFontInfo B
-
b
public static final DefaultFontInfo b
-
C
public static final DefaultFontInfo C
-
c
public static final DefaultFontInfo c
-
D
public static final DefaultFontInfo D
-
d
public static final DefaultFontInfo d
-
E
public static final DefaultFontInfo E
-
e
public static final DefaultFontInfo e
-
F
public static final DefaultFontInfo F
-
f
public static final DefaultFontInfo f
-
G
public static final DefaultFontInfo G
-
g
public static final DefaultFontInfo g
-
H
public static final DefaultFontInfo H
-
h
public static final DefaultFontInfo h
-
I
public static final DefaultFontInfo I
-
i
public static final DefaultFontInfo i
-
J
public static final DefaultFontInfo J
-
j
public static final DefaultFontInfo j
-
K
public static final DefaultFontInfo K
-
k
public static final DefaultFontInfo k
-
L
public static final DefaultFontInfo L
-
l
public static final DefaultFontInfo l
-
M
public static final DefaultFontInfo M
-
m
public static final DefaultFontInfo m
-
N
public static final DefaultFontInfo N
-
n
public static final DefaultFontInfo n
-
O
public static final DefaultFontInfo O
-
o
public static final DefaultFontInfo o
-
P
public static final DefaultFontInfo P
-
p
public static final DefaultFontInfo p
-
Q
public static final DefaultFontInfo Q
-
q
public static final DefaultFontInfo q
-
R
public static final DefaultFontInfo R
-
r
public static final DefaultFontInfo r
-
S
public static final DefaultFontInfo S
-
s
public static final DefaultFontInfo s
-
T
public static final DefaultFontInfo T
-
t
public static final DefaultFontInfo t
-
U
public static final DefaultFontInfo U
-
u
public static final DefaultFontInfo u
-
V
public static final DefaultFontInfo V
-
v
public static final DefaultFontInfo v
-
W
public static final DefaultFontInfo W
-
w
public static final DefaultFontInfo w
-
X
public static final DefaultFontInfo X
-
x
public static final DefaultFontInfo x
-
Y
public static final DefaultFontInfo Y
-
y
public static final DefaultFontInfo y
-
Z
public static final DefaultFontInfo Z
-
z
public static final DefaultFontInfo z
-
NUM_1
public static final DefaultFontInfo NUM_1
-
NUM_2
public static final DefaultFontInfo NUM_2
-
NUM_3
public static final DefaultFontInfo NUM_3
-
NUM_4
public static final DefaultFontInfo NUM_4
-
NUM_5
public static final DefaultFontInfo NUM_5
-
NUM_6
public static final DefaultFontInfo NUM_6
-
NUM_7
public static final DefaultFontInfo NUM_7
-
NUM_8
public static final DefaultFontInfo NUM_8
-
NUM_9
public static final DefaultFontInfo NUM_9
-
NUM_0
public static final DefaultFontInfo NUM_0
-
EXCLAMATION_POINT
public static final DefaultFontInfo EXCLAMATION_POINT
-
AT_SYMBOL
public static final DefaultFontInfo AT_SYMBOL
-
NUM_SIGN
public static final DefaultFontInfo NUM_SIGN
-
DOLLAR_SIGN
public static final DefaultFontInfo DOLLAR_SIGN
-
PERCENT
public static final DefaultFontInfo PERCENT
-
UP_ARROW
public static final DefaultFontInfo UP_ARROW
-
AMPERSAND
public static final DefaultFontInfo AMPERSAND
-
ASTERISK
public static final DefaultFontInfo ASTERISK
-
LEFT_PARENTHESIS
public static final DefaultFontInfo LEFT_PARENTHESIS
-
RIGHT_PARENTHESIS
public static final DefaultFontInfo RIGHT_PARENTHESIS
-
MINUS
public static final DefaultFontInfo MINUS
-
UNDERSCORE
public static final DefaultFontInfo UNDERSCORE
-
PLUS_SIGN
public static final DefaultFontInfo PLUS_SIGN
-
EQUALS_SIGN
public static final DefaultFontInfo EQUALS_SIGN
-
LEFT_CURL_BRACE
public static final DefaultFontInfo LEFT_CURL_BRACE
-
RIGHT_CURL_BRACE
public static final DefaultFontInfo RIGHT_CURL_BRACE
-
LEFT_BRACKET
public static final DefaultFontInfo LEFT_BRACKET
-
RIGHT_BRACKET
public static final DefaultFontInfo RIGHT_BRACKET
-
COLON
public static final DefaultFontInfo COLON
-
SEMI_COLON
public static final DefaultFontInfo SEMI_COLON
-
DOUBLE_QUOTE
public static final DefaultFontInfo DOUBLE_QUOTE
-
SINGLE_QUOTE
public static final DefaultFontInfo SINGLE_QUOTE
-
LEFT_ARROW
public static final DefaultFontInfo LEFT_ARROW
-
RIGHT_ARROW
public static final DefaultFontInfo RIGHT_ARROW
-
QUESTION_MARK
public static final DefaultFontInfo QUESTION_MARK
-
SLASH
public static final DefaultFontInfo SLASH
-
BACK_SLASH
public static final DefaultFontInfo BACK_SLASH
-
LINE
public static final DefaultFontInfo LINE
-
TILDE
public static final DefaultFontInfo TILDE
-
TICK
public static final DefaultFontInfo TICK
-
PERIOD
public static final DefaultFontInfo PERIOD
-
COMMA
public static final DefaultFontInfo COMMA
-
SPACE
public static final DefaultFontInfo SPACE
-
DEFAULT
public static final DefaultFontInfo DEFAULT
-
-
Method Detail
-
values
public static DefaultFontInfo[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultFontInfo c : DefaultFontInfo.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultFontInfo valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDefaultFontInfo
public static DefaultFontInfo getDefaultFontInfo(char c)
-
getCharacter
public char getCharacter()
-
getLength
public int getLength()
-
getBoldLength
public int getBoldLength()
-
-