Hierarchical Layout with Node Port Candidates
This demo shows how to use a set of
node port candidates for the
Hierarchical Layout to define the port locations for
a node as well as control how many edges can be connected to each port.
For the turquoise node, a set of
node port candidates is used that contains four port
candidates, one for each side of the node.
Each LayoutPortCandidate only allows for one connecting edge, hence the
four incoming edges are distributed to the four port candidates.
Click the button in the toolbar to toggle between
Hierarchical Layout with and without a configured
port candidate set.
Documentation
See the Restricting Port Locations section in
the Developer's Guide for an in-depth discussion of the relevant concepts.