Enum Class LegendPosition
- All Implemented Interfaces:
Serializable
,Comparable<LegendPosition>
,Constable
Legend positions.
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LegendPosition
Determines the legend’s position by its name.toString()
static LegendPosition
Returns the enum constant of this class with the specified name.static LegendPosition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
The legend is displayed on the left side of the chart. -
RIGHT
The legend is displayed on the right side of the chart. -
TOP
The legend is displayed above the chart. -
BOTTOM
The legend is displayed below the chart.
-
-
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
-
toString
- Overrides:
toString
in classEnum<LegendPosition>
- Returns:
- The JavaScript parameter value for the current position
-
fromName
Determines the legend’s position by its name.- Parameters:
name
- Legend position name- Returns:
- The corresponding position name or
null
, if there is no legend position by the specified name
-