Default implementation of the IGroupedGraph interface that can be used to decorate IGraph instances.

Namespace: yWorks.yFiles.UI.Model
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

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:
  • 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

Graph hierarchies, and in particular class GroupedGraph, are described in the section Managing Graph Hierarchies.

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.UI.Model..::..GroupedGraph

See Also