Enum TitleRotationMode
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<TitleRotationMode>
,Constable
titleLabel
of a
DrawItem
can be rotated with the item. NOTE: The effect
of the WITH_ITEM_ALWAYS_UP
and WITH_LINE_ALWAYS_UP
settings is not affected by the global rotation, if any
(see DrawPane.rotation
).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthetitleLabel
is never rotated with the item.thetitleLabel
is rotated exactly to match the item's rotation (seeDrawItem.rotation
).thetitleLabel
is rotated exactly to match the item's rotation, except that at certain rotations, thetitleLabel
is flipped by 180° so that the title text is never upside down.(applies only toDrawLine
andDrawLinePath
) thetitleLabel
is rotated to match the line or center segment.(applies only toDrawLine
andDrawLinePath
) thetitleLabel
is rotated to match the line or center segment, except that at certain rotations, thetitleLabel
is flipped by 180° so that the title text is never upside down. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static TitleRotationMode
Returns the enum constant of this type with the specified name.static TitleRotationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NEVER_ROTATE
thetitleLabel
is never rotated with the item.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "neverRotate". -
WITH_ITEM
thetitleLabel
is rotated exactly to match the item's rotation (seeDrawItem.rotation
).If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "withItem". -
WITH_ITEM_ALWAYS_UP
thetitleLabel
is rotated exactly to match the item's rotation, except that at certain rotations, thetitleLabel
is flipped by 180° so that the title text is never upside down.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "withItemAlwaysUp". -
WITH_LINE
(applies only toDrawLine
andDrawLinePath
) thetitleLabel
is rotated to match the line or center segment.If used on a
DrawItem
that is not aDrawLine
orDrawLinePath
, then the effect is the same asWITH_ITEM
.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "withLine". -
WITH_LINE_ALWAYS_UP
(applies only toDrawLine
andDrawLinePath
) thetitleLabel
is rotated to match the line or center segment, except that at certain rotations, thetitleLabel
is flipped by 180° so that the title text is never upside down.If used on a
DrawItem
that is not aDrawLine
orDrawLinePath
, then the effect is the same asWITH_ITEM_ALWAYS_UP
.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "withLineAlwaysUp".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-