Enum Class GraphStyle.Position
- All Implemented Interfaces:
Serializable, Comparable<GraphStyle.Position>, Constable
- Enclosing class:
GraphStyle
Positioning options for graph decorations such as legends.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck whether this position is horizontal.booleanCheck whether this position is vertical.static GraphStyle.PositionReturns the enum constant of this class with the specified name.static GraphStyle.Position[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORTH
Top edge of the graph. -
SOUTH
Bottom edge of the graph. -
EAST
Right edge of the graph. -
WEST
Left edge of the graph. -
NONE
Decoration disabled.
-
-
Constructor Details
-
Position
private Position()
-
-
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
-
isVertical
public boolean isVertical()Check whether this position is vertical.- Returns:
truefor east/west
-
isHorizontal
public boolean isHorizontal()Check whether this position is horizontal.- Returns:
truefor north/south
-