Application Features Tutorial

Graph Decorator

This demo shows how to use the graph decorator concept to customize the behavior and the visualization of graph items.

As example, this demo decorates the nodes with a port candidate provider that is a combination of the following existing port candidate providers:

IPortCandidateProvider#fromExistingPorts
Provides port candidates at the locations of already existing ports.
IPortCandidateProvider#fromNodeCenter
Provides a single port candidate at the center of the node.
IPortCandidateProvider#fromShapeGeometry
Provides several port candidates based on the shape of the node's style.

See the sources for details.