Package com.vuzix.ultralite
Enum Class TextWrapMode
- All Implemented Interfaces:
Serializable
,Comparable<TextWrapMode>
,Constable
Available wrap modes for text on a canvas.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSimply clip the parts of the text outside the label.If the text is wider than the label, scroll it horizontally back and forth.If the text is wider than the label, scroll it horizontally continuously.If the text is wider than the label, replaces the last 3 characters from bottom right corner of the label with dots (.)Wrap too long lines into additional rows of text. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextWrapMode
Returns the enum constant of this class with the specified name.static TextWrapMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WRAP
Wrap too long lines into additional rows of text. If the label height is insufficient the text will be clipped. (Default)- Since:
- 1.0.0
-
TRUNCATE
If the text is wider than the label, replaces the last 3 characters from bottom right corner of the label with dots (.)- Since:
- 1.0.0
-
SCROLL
If the text is wider than the label, scroll it horizontally back and forth. If it's higher, scroll vertically. Only one direction is scrolled and horizontal scrolling has higher precedence.- Since:
- 1.0.0
-
SCROLL_CIRCULAR
If the text is wider than the label, scroll it horizontally continuously. If it's higher, scroll vertically. Only one direction is scrolled and horizontal scrolling has higher precedence.- Since:
- 1.0.0
-
CLIP
Simply clip the parts of the text outside the label.- Since:
- 1.0.0
-
-
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
-