Default implementation of the IGroupedGraph interface that can be used
to decorate IGraph instances.
Namespace: yWorks.yFiles.UI.ModelAssembly: yWorks.yFilesNET.Viewer (in yWorks.yFilesNET.Viewer.dll) Version: 4.1.0.1 (4.1.0.1)
Syntax
| C# |
|---|
public class GroupedGraph : IGroupedGraph |
| Visual Basic |
|---|
Public Class GroupedGraph _ Implements IGroupedGraph |
Remarks
DefaultGraph uses this class to provide an implementation of the IGroupedGraph
interface in its Lookup(Type) method, if GroupingSupported
is set to trueTruetruetrue (True in Visual Basic).
This implementation will decorate the look-ups of the IGraph and its nodes to support the following features:
This implementation will decorate the look-ups of the IGraph and its nodes to support the following features:
- Add a view of the IHierarchy<INode> to the lookup of the IGraph as well as registers this instance under IGroupedGraph and GroupedGraph with the graph's lookup mechanism.
- Automatically resize group nodes once their contents' bounds changes. This can optionally be disabled using AutoAdjustGroupNodeBounds.
- Automatically forward positional changes of group nodes to their contents.
- Provide size constraints for group nodes, so that it will not be possible to resize group nodes in such a way that they do not encompass their contents' bounds any more.
- Add IUndoUnits for hierarchy changes to the IUndoSupport of the graph instance if the underlying graph supports it.
Related Reading in the Developer's Guide
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.UI.Model..::..GroupedGraph
yWorks.yFiles.UI.Model..::..GroupedGraph