Enum Class Graphics.TextRotationMode

java.lang.Object
java.lang.Enum<Graphics.TextRotationMode>
com.dua3.utility.ui.Graphics.TextRotationMode
All Implemented Interfaces:
Serializable, Comparable<Graphics.TextRotationMode>, Constable
Enclosing interface:
Graphics

public static enum Graphics.TextRotationMode extends Enum<Graphics.TextRotationMode>
Enum defining the supported text rotation modes.
  • Enum Constant Details

    • ROTATE_OUTPUT_AREA

      public static final Graphics.TextRotationMode ROTATE_OUTPUT_AREA
      Rotate the output area as a whole, i.e., the text is rendered the same as with no rotation applied and then the whole block is rotated with the anchor as pivot. This means that for example when rotating counter-clockwise with Graphics.HAnchor.LEFT and Graphics.VAnchor.BOTTOM, the upper left corner will be to the left of the pivot's x-coordinate.
    • ROTATE_AND_TRANSLATE

      public static final Graphics.TextRotationMode ROTATE_AND_TRANSLATE
      Rotate the text as a whole, then translate the text to be placed inside the output area
    • ROTATE_LINES

      public static final Graphics.TextRotationMode ROTATE_LINES
      Rotate each line independently. Align lines horizontally, i.e., all lines start at the same y-coordinate.
    • ROTATE_AND_TRANSLATE_LINES

      public static final Graphics.TextRotationMode ROTATE_AND_TRANSLATE_LINES
      Rotate each line independently, then translate the rotated lines into the original output area.
  • Method Details

    • values

      public static Graphics.TextRotationMode[] 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 Graphics.TextRotationMode 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