Package edu.cornell.gdiac.graphics
Enum Class TextLayout.UnicodeType
- All Implemented Interfaces:
Serializable,Comparable<TextLayout.UnicodeType>,Constable
- Enclosing class:
- TextLayout
An enum for categorizing unicode character types.
Unicode supports many variations of spaces and newlines beyond what we find in ASCII. This enum allows us to categorize them.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TextLayout.UnicodeTypeReturns the enum constant of this class with the specified name.static TextLayout.UnicodeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHAR
A traditional, printable character -
CJK
Chinese, Japanese, or Korean -
SPACE
A space (including non-ASCII) -
NEWLINE
A newline (including non-ASCII) -
CONTROL
A control character
-
-
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
-