public enum TitleRotationMode extends java.lang.Enum<TitleRotationMode> implements ValueEnum
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).
| Enum Constant and Description |
|---|
NEVER_ROTATE
the
titleLabel is never rotated with the item. |
WITH_ITEM
the
titleLabel is rotated exactly to match the item's rotation (see DrawItem.rotation). |
WITH_ITEM_ALWAYS_UP
the
titleLabel is rotated exactly to match the item's rotation, except that at certain rotations, the
titleLabel is flipped by 180° so that the title text is never upside down. |
WITH_LINE
(applies only to
DrawLine and DrawLinePath) the titleLabel is rotated to match the line or center
segment. |
WITH_LINE_ALWAYS_UP
(applies only to
DrawLine and DrawLinePath) the titleLabel is rotated to match the line or center
segment, except that at certain rotations, the titleLabel is flipped by 180° so that the title text is
never upside down. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getValue() |
static TitleRotationMode |
valueOf(java.lang.String name)
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.
|
public static final TitleRotationMode NEVER_ROTATE
titleLabel 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".
public static final TitleRotationMode WITH_ITEM
titleLabel is rotated exactly to match the item's rotation (see DrawItem.rotation).
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "withItem".
public static final TitleRotationMode WITH_ITEM_ALWAYS_UP
titleLabel is rotated exactly to match the item's rotation, except that at certain rotations, the
titleLabel 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".
public static final TitleRotationMode WITH_LINE
DrawLine and DrawLinePath) the titleLabel is rotated to match the line or center
segment. If used on a DrawItem that is not a DrawLine or DrawLinePath, then
the effect is the same as WITH_ITEM.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "withLine".
public static final TitleRotationMode WITH_LINE_ALWAYS_UP
DrawLine and DrawLinePath) the titleLabel is rotated to match the line or center
segment, except that at certain rotations, the titleLabel is flipped by 180° so that the title text is
never upside down. If used on a DrawItem that is not a DrawLine or
DrawLinePath, then the effect is the same as WITH_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".
public static TitleRotationMode[] values()
for (TitleRotationMode c : TitleRotationMode.values()) System.out.println(c);
public static TitleRotationMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null