public enum PlaceAlongEdge extends Enum<PlaceAlongEdge>
EdgeSegmentLabelModel to indicate the position of the label along the edge.
This enumeration is mainly used by the XAML serialization mechanisms.
| Enum Constant and Description |
|---|
AT_CENTER
The label is at the center of the edge and the segment index is ignored.
|
AT_SOURCE
The segment index is counted from the edge source.
|
AT_TARGET
The segment index is counted from the edge target.
|
| Modifier and Type | Method and Description |
|---|---|
static PlaceAlongEdge |
fromOrdinal(int ordinal) |
int |
value() |
static PlaceAlongEdge |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlaceAlongEdge[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlaceAlongEdge AT_CENTER
public static final PlaceAlongEdge AT_SOURCE
public static final PlaceAlongEdge AT_TARGET
public static final PlaceAlongEdge fromOrdinal(int ordinal)
public int value()
public static PlaceAlongEdge 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 PlaceAlongEdge[] values()
for (PlaceAlongEdge c : PlaceAlongEdge.values()) System.out.println(c);