Enum Class TextRendering3D.Anchor

java.lang.Object
java.lang.Enum<TextRendering3D.Anchor>
edu.cnu.mdi.mdi3D.panel.TextRendering3D.Anchor
All Implemented Interfaces:
Serializable, Comparable<TextRendering3D.Anchor>, Constable
Enclosing class:
TextRendering3D

public static enum TextRendering3D.Anchor extends Enum<TextRendering3D.Anchor>
Anchor point used to place text relative to its projected pixel position.
  • Enum Constant Details

    • LEFT

      public static final TextRendering3D.Anchor LEFT
      Place the left edge of the text at the projected point.
    • CENTER

      public static final TextRendering3D.Anchor CENTER
      Center the text horizontally on the projected point.
    • LEFT_CENTER

      public static final TextRendering3D.Anchor LEFT_CENTER
      Left aligned and vertically centered on the projected point.
    • CENTER_CENTER

      public static final TextRendering3D.Anchor CENTER_CENTER
      Horizontally and vertically centered on the projected point.
    • RIGHT_CENTER

      public static final TextRendering3D.Anchor RIGHT_CENTER
      Right aligned and vertically centered on the projected point.
  • Method Details

    • values

      public static TextRendering3D.Anchor[] 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 TextRendering3D.Anchor 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