Enum Class TextWrapMode

java.lang.Object
java.lang.Enum<TextWrapMode>
com.vuzix.ultralite.TextWrapMode
All Implemented Interfaces:
Serializable, Comparable<TextWrapMode>, Constable

public enum TextWrapMode extends Enum<TextWrapMode>
Available wrap modes for text on a canvas.
  • Enum Constant Details

    • WRAP

      public static final TextWrapMode WRAP
      Wrap too long lines into additional rows of text. If the label height is insufficient the text will be clipped. (Default)
    • TRUNCATE

      public static final TextWrapMode TRUNCATE
      If the text is wider than the label, replaces the last 3 characters from bottom right corner of the label with dots (.)
    • SCROLL

      public static final TextWrapMode 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.
    • SCROLL_CIRCULAR

      public static final TextWrapMode 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.
    • CLIP

      public static final TextWrapMode CLIP
      Simply clip the parts of the text outside the label.
  • Method Details

    • values

      public static TextWrapMode[] 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

      public static TextWrapMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null