Enum Class UIContentTileContent.UIContentTileContentShift

java.lang.Object
java.lang.Enum<UIContentTileContent.UIContentTileContentShift>
tech.underoaks.coldcase.state.tileContent.UIContentTileContent.UIContentTileContentShift
All Implemented Interfaces:
Serializable, Comparable<UIContentTileContent.UIContentTileContentShift>, Constable
Enclosing class:
UIContentTileContent

public static enum UIContentTileContent.UIContentTileContentShift extends Enum<UIContentTileContent.UIContentTileContentShift>
The different ways the text can be shifted and tilted.

The shift values are the x and y coordinates of the text relative to the tile. The tilt values are the angles of rotation around the x, y, and z axes. The text is rendered at the tile's position, then shifted and tilted according to these values.

  • Enum Constant Details

    • SHIFT_BLOCKSIDE_LEFT

      public static final UIContentTileContent.UIContentTileContentShift SHIFT_BLOCKSIDE_LEFT
      Shift configuration for rendering text on the left side of a block.

      Applies a horizontal shift of 690 and a vertical shift of 810 with no rotation.

    • SHIFT_BLOCKSIDE_RIGHT

      public static final UIContentTileContent.UIContentTileContentShift SHIFT_BLOCKSIDE_RIGHT
      Shift configuration for rendering text on the right side of a block.

      Applies a horizontal shift of 210 and a vertical shift of 810 with no rotation.

    • SHIFT_BLOCKTOP

      public static final UIContentTileContent.UIContentTileContentShift SHIFT_BLOCKTOP
      Shift configuration for rendering text at the top of a block.

      Applies a horizontal shift of 400, a vertical shift of 800, and rotates the text 45 degrees around the z-axis.

  • Field Details

    • shiftX

      public final int shiftX
      The horizontal shift applied to the text relative to the tile's position.
    • shiftY

      public final int shiftY
      The vertical shift applied to the text relative to the tile's position.
    • tiltX

      public final int tiltX
      The rotation angle applied around the x-axis.
    • tiltY

      public final int tiltY
      The rotation angle applied around the y-axis.
    • tiltZ

      public final int tiltZ
      The rotation angle applied around the z-axis.
  • 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 name
      NullPointerException - if the argument is null