Exemplo n.º 1
0
        protected override ItemModelManager <INode> CreateNodeModelManager(ICanvasObjectDescriptor descriptor, Func <INode, ICanvasObjectGroup> callback)
        {
            var nodeModelManager = base.CreateNodeModelManager(descriptor, callback);

            nodeModelManager.Comparer = comparer;
            return(nodeModelManager);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance that wraps the <paramref name="originalDescriptor"/>.
 /// </summary>
 /// <param name="originalDescriptor">The original descriptor.</param>
 public HidingEdgeDescriptor(ICanvasObjectDescriptor originalDescriptor)
 {
     this.originalDescriptor = originalDescriptor;
     this.HiddenEdges        = new HashSet <IEdge>();
 }
Exemplo n.º 3
0
 public static ICanvasObject Add(this CanvasControl canvas, object userObject, ICanvasObjectDescriptor descriptor, ICanvasObjectGroup group)
 {
     return(group.AddChild(userObject, descriptor));
 }