public enum SegmentOrientation extends Enum<SegmentOrientation>
This class is mainly used by IOrthogonalEdgeHelper
and OrthogonalEdgeEditingContext
.
Enum Constant and Description |
---|
HORIZONTAL
The segment has a horizontal orientation, which means that the end points should be moved vertically in synch so that
the orientation is not destroyed.
|
NON_ORTHOGONAL
The segment does not need to be treated especially, both endpoints can be moved independently from each other.
|
VERTICAL
The segment has a vertical orientation, which means that the end points should be moved horizontally in synch so that
the orientation is not destroyed.
|
Modifier and Type | Method and Description |
---|---|
static SegmentOrientation |
fromOrdinal(int ordinal) |
int |
value() |
static SegmentOrientation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SegmentOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SegmentOrientation HORIZONTAL
public static final SegmentOrientation NON_ORTHOGONAL
public static final SegmentOrientation VERTICAL
public static final SegmentOrientation fromOrdinal(int ordinal)
public int value()
public static SegmentOrientation valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static SegmentOrientation[] values()
for (SegmentOrientation c : SegmentOrientation.values()) System.out.println(c);