Package com.dua3.utility.ui
Enum Class Graphics.TextRotationMode
- All Implemented Interfaces:
Serializable
,Comparable<Graphics.TextRotationMode>
,Constable
- Enclosing interface:
Graphics
Enum defining the supported text rotation modes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRotate the text as a whole, then translate the text to be placed inside the output areaRotate each line independently, then translate the rotated lines into the original output area.Rotate each line independently.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic Graphics.TextRotationMode
Returns the enum constant of this class with the specified name.static Graphics.TextRotationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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 withGraphics.HAnchor.LEFT
andGraphics.VAnchor.BOTTOM
, the upper left corner will be to the left of the pivot's x-coordinate. -
ROTATE_AND_TRANSLATE
Rotate the text as a whole, then translate the text to be placed inside the output area -
ROTATE_LINES
Rotate each line independently. Align lines horizontally, i.e., all lines start at the same y-coordinate. -
ROTATE_AND_TRANSLATE_LINES
Rotate each line independently, then translate the rotated lines into the original output area.
-
-
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
-