public interface IPortAssignment
IPortAssignment
is used by SeriesParallelLayout
for determining the locations of the edges' ports at
their incident nodes.Modifier and Type | Method and Description |
---|---|
void |
assignPorts(LayoutGraph graph,
Node node)
Assigns both the incoming edges' target ports as well as all source ports for the outgoing edges.
|
void assignPorts(LayoutGraph graph, Node node)
Outgoing edges are sorted according to the specified out-edge comparator from left to right and incoming edges are in the order of the subgraphs they are coming from.
This method is called by SeriesParallelLayout
before the actual layout
of the graph takes place.
graph
- the graph instance the node is part ofnode
- the node whose incident edges' ports are assignedSeriesParallelLayout.OUT_EDGE_COMPARATOR_DPKEY
,
SeriesParallelLayout.setDefaultOutEdgeComparator(java.util.Comparator)