Enum Class Orientation
- All Implemented Interfaces:
Serializable
,Comparable<Orientation>
,Constable
Specify a orientation for the labels and the bar.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHorizontal scalebar and the labels are shown above the bar.Horizontal scalebar and the labels are shown below the bar.Vertical scalebar and the labels are shown left of the bar.Vertical scalebar and the labels are shown right of the bar. -
Method Summary
Modifier and TypeMethodDescriptionstatic Orientation
fromString
(String label) Get a direction from its label.final String
getLabel()
final boolean
static Orientation
Returns the enum constant of this class with the specified name.static Orientation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HORIZONTAL_LABELS_BELOW
Horizontal scalebar and the labels are shown below the bar. -
HORIZONTAL_LABELS_ABOVE
Horizontal scalebar and the labels are shown above the bar. -
VERTICAL_LABELS_LEFT
Vertical scalebar and the labels are shown left of the bar. -
VERTICAL_LABELS_RIGHT
Vertical scalebar and the labels are shown right of the bar.
-
-
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
-
fromString
Get a direction from its label.- Parameters:
label
- the direction label
-
isHorizontal
public final boolean isHorizontal() -
getLabel
-