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 ConstantsEnum ConstantDescriptionthetitleLabelis never rotated with the item.thetitleLabelis rotated exactly to match the item's rotation (seeDrawItem.rotation).thetitleLabelis rotated exactly to match the item's rotation, except that at certain rotations, thetitleLabelis flipped by 180° so that the title text is never upside down.(applies only toDrawLineandDrawLinePath) thetitleLabelis rotated to match the line or center segment.(applies only toDrawLineandDrawLinePath) thetitleLabelis rotated to match the line or center segment, except that at certain rotations, thetitleLabelis flipped by 180° so that the title text is never upside down. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()static TitleRotationModeReturns 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
thetitleLabelis never rotated with the item.If this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "neverRotate". -
WITH_ITEM
thetitleLabelis rotated exactly to match the item's rotation (seeDrawItem.rotation).If this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "withItem". -
WITH_ITEM_ALWAYS_UP
thetitleLabelis rotated exactly to match the item's rotation, except that at certain rotations, thetitleLabelis flipped by 180° so that the title text is never upside down.If this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "withItemAlwaysUp". -
WITH_LINE
(applies only toDrawLineandDrawLinePath) thetitleLabelis rotated to match the line or center segment.If used on a
DrawItemthat is not aDrawLineorDrawLinePath, then the effect is the same asWITH_ITEM.If this enumerated value is used in a
Component XMLfile or server-side DataSource descriptor (.ds.xml file), use the value "withLine". -
WITH_LINE_ALWAYS_UP
(applies only toDrawLineandDrawLinePath) thetitleLabelis rotated to match the line or center segment, except that at certain rotations, thetitleLabelis flipped by 180° so that the title text is never upside down.If used on a
DrawItemthat is not aDrawLineorDrawLinePath, then the effect is the same asWITH_ITEM_ALWAYS_UP.If this enumerated value is used in a
Component XMLfile 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
-