67 lines
1.8 KiB
C#
67 lines
1.8 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using Microsoft.Msagl.Core.Layout;
|
|||
|
|
|
|||
|
|
namespace Microsoft.Msagl.Layout.LargeGraphLayout {
|
|||
|
|
internal class LgNodeCollection : IList<Node> {
|
|||
|
|
readonly Func<IEnumerable<Node>> funcOfNodes;
|
|||
|
|
|
|||
|
|
public LgNodeCollection(Func<IEnumerable<LgNodeInfo>> funcOfLgNodes) {
|
|||
|
|
this.funcOfNodes = ()=>funcOfLgNodes().Select(n=>n.GeometryNode);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public IEnumerator<Node> GetEnumerator() {
|
|||
|
|
return funcOfNodes().GetEnumerator();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
IEnumerator IEnumerable.GetEnumerator() {
|
|||
|
|
return GetEnumerator();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Add(Node item) {
|
|||
|
|
throw new NotImplementedException();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Clear() {
|
|||
|
|
throw new NotImplementedException();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public bool Contains(Node item) {
|
|||
|
|
throw new NotImplementedException();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void CopyTo(Node[] array, int arrayIndex) {
|
|||
|
|
throw new NotImplementedException();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public bool Remove(Node item) {
|
|||
|
|
throw new NotImplementedException();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public int Count {
|
|||
|
|
get {
|
|||
|
|
return funcOfNodes().Count();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
public bool IsReadOnly { get; set; }
|
|||
|
|
public int IndexOf(Node item) {
|
|||
|
|
throw new NotImplementedException();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Insert(int index, Node item) {
|
|||
|
|
throw new NotImplementedException();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void RemoveAt(int index) {
|
|||
|
|
throw new NotImplementedException();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public Node this[int index] {
|
|||
|
|
get { throw new NotImplementedException(); }
|
|||
|
|
set { throw new NotImplementedException(); }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|