Port Candidate Provider Demo
This demo shows how edge creation can be customized by implementing the
Add the custom implementation as decoration to the edge decorator of the graph to use it.
Things to Try
Initiate edge creation by dragging from an unselected node (with the left mouse button
pressed). Releasing the button finishes edge creation if the mouse is on a valid target
and creates a bend otherwise.
Red nodes cannot have any edges. You cannot start or
end an edge at them. A red port candidate highlights that these nodes are invalid
Only edges from other green nodes can end at green
Blue nodes provide a set of predefined ports. Only
one edge can be connected to each of these ports. Occupied ports are highlighted in red.
Orange nodes provide dynamic port candidates.
Edges can start and end anywhere inside these nodes when the Shift key is pressed.