public interface IPortAssignment
IPortAssignment
places the ports of edges connecting to the same node.
Classes implementing this interface are responsible for the assignment of the edges' ports. INodePlacer
instances need to obey the currently set ports.
Modifier and Type | Method and Description |
---|---|
void |
assignPorts(LayoutGraph graph,
Node node)
Places the ports of edges connecting to the given node.
|
void assignPorts(LayoutGraph graph, Node node)
This method is called by TreeLayout
before the actual layout calculation takes
place. It assigns both the single incoming edge's target port as well as all source ports of all outgoing child edges.
TreeLayout
may have reversed some edges in
order to normalize the tree structure.graph
- the graphnode
- the node whose adjacent edges' ports should be set