public enum PortAssignmentMode extends Enum<PortAssignmentMode>
Enum Constant and Description |
---|
DISTRIBUTED_EAST
A port assignment specifier which defines that edges are distributed evenly at the eastern side of their nodes.
|
DISTRIBUTED_NORTH
A port assignment specifier which defines that edges are distributed evenly at the northern side of their nodes.
|
DISTRIBUTED_SOUTH
A port assignment specifier which defines that edges are distributed evenly at the southern side of their nodes.
|
DISTRIBUTED_WEST
A port assignment specifier which defines that edges are distributed evenly at the western side of their nodes.
|
NONE
A port assignment specifier which defines that all ports are reset to the center of their nodes.
|
PORT_CONSTRAINT
A port assignment specifier that defines that
PortConstraint s are considered. |
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 DISTRIBUTED_EAST
Grouped edges will use the same port coordinate and will be considered as a single edge when calculating the distribution.
public static final PortAssignmentMode DISTRIBUTED_NORTH
Grouped edges will use the same port coordinate and will be considered as a single edge when calculating the distribution.
public static final PortAssignmentMode DISTRIBUTED_SOUTH
Grouped edges will use the same port coordinate and will be considered as a single edge when calculating the distribution.
public static final PortAssignmentMode DISTRIBUTED_WEST
Grouped edges will use the same port coordinate and will be considered as a single edge when calculating the distribution.
public static final PortAssignmentMode NONE
public static final PortAssignmentMode PORT_CONSTRAINT
PortConstraint
s are considered. Ports are placed using the following rules:
PortConstraint
are anchored at the center of the nodePortConstraint
are anchored at the center of their specified sidePortConstraint
are anchored at their initial coordinates
If edges with
PortConstraint
s are grouped, all edges in the same group will use the port
coordinates of the first edge in the group.
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);