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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionShift configuration for rendering text on the left side of a block.Shift configuration for rendering text on the right side of a block.Shift configuration for rendering text at the top of a block. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe horizontal shift applied to the text relative to the tile's position.final intThe vertical shift applied to the text relative to the tile's position.final intThe rotation angle applied around the x-axis.final intThe rotation angle applied around the y-axis.final intThe rotation angle applied around the z-axis. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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 shiftXThe horizontal shift applied to the text relative to the tile's position. -
shiftY
public final int shiftYThe vertical shift applied to the text relative to the tile's position. -
tiltX
public final int tiltXThe rotation angle applied around the x-axis. -
tiltY
public final int tiltYThe rotation angle applied around the y-axis. -
tiltZ
public final int tiltZThe 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 nameNullPointerException- if the argument is null
-