public enum PortAssignmentMode extends Enum<PortAssignmentMode>
NodeLayoutDescriptor.getPortAssignment()
Enum Constant and Description |
---|
DEFAULT
A port assignment strategy that distributes ports evenly along the border of the node.
|
ON_GRID
A port assignment strategy that places all edges on grid lines.
|
ON_SUBGRID
A port assignment strategy that places all edges on grid lines or sub-grid lines.
|
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 DEFAULT
This is the default port assignment strategy of HierarchicLayout
.
public static final PortAssignmentMode ON_GRID
If there are not enough grid lines for each port, ports may overlap. In case there is no grid line available at the side of a node, the ports are placed centered at that side.
grid spacing
is greater than 0
.NodeLayoutDescriptor.setPortAssignment(PortAssignmentMode)
public static final PortAssignmentMode ON_SUBGRID
If there are not enough grid lines for each port, the grid gets subdivided with sub-grid lines until each edge has space for its port.
grid spacing
is greater than 0
.NodeLayoutDescriptor.setPortAssignment(PortAssignmentMode)
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);