public enum PortAssignmentMode extends Enum<PortAssignmentMode>
Enum Constant and Description |
---|
CENTER
A port assignment specifier which defines that all ports are reset to the center of their nodes.
|
DISTRIBUTED
A port assignment specifier which defines that the ports of incoming and outgoing edges are distributed evenly at the
side of their nodes.
|
Modifier and Type | Method and Description |
---|---|
static PortAssignmentMode |
fromOrdinal(int ordinal) |
int |
value() |
static PortAssignmentMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortAssignmentMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortAssignmentMode CENTER
PortConstraint
s are excluded. They will keep their current locations on the node.PortConstraint
public static final PortAssignmentMode DISTRIBUTED
The source ports of edges without PortConstraint
s will be distributed at the sides of
their source and target nodes. Edges with weak PortConstraint
s are distributed at the
side of the nodes which is specified in the PortConstraint
.
Grouped edges will get the same port location.
PortConstraint
s are excluded. They will keep their current locations on the node.PortConstraint
,
PortConstraintKeys.SOURCE_GROUP_ID_DPKEY
,
PortConstraintKeys.TARGET_GROUP_ID_DPKEY
public static final PortAssignmentMode fromOrdinal(int ordinal)
public int value()
public static PortAssignmentMode 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 PortAssignmentMode[] values()
for (PortAssignmentMode c : PortAssignmentMode.values()) System.out.println(c);