Folding
This demo shows how to enable collapsing and expanding of group nodes, the so-called Folding feature. This is provided through the FoldingManager class and its support classes.
The GraphEditorInputMode class provides the following interactive gestures for collapsing and expanding groups:
- Close (collapse) a selected open group node by pressing Alt + ← or clicking the expand icon in the group's top left corner.
- Open (expand) a selected closed group node by pressing Alt + → or clicking the collapse icon in the node's top left corner.
- Enter (navigate into) a selected group node by pressing Alt + ↓.
- Exit (navigate out of) a selected group node by pressing Alt + ↑.
The autoGroupNodeAlignmentPolicy property specifies whether and which point of a group node remains fixed during expand/collapse actions. Use the toggle button in the toolbar to enable or disable it.
Demos
- Folding With Merged Edges Demo
- Folding With Layout Demo
- Filtering With Folding Demo
- Hierarchical Nesting Demo
- Hierarchical Nesting (Incremental) Demo