예제 #1
0
 /// <summary>
 /// Raises the <see cref="LayEdge"/> event.
 /// </summary>
 /// <param name="e">edge to lay</param>
 /// <param name="sourcePort">source port</param>
 /// <param name="targetPort">target port</param>
 /// <param name="keys">key positions of the spline</param>
 protected void OnLayEdge(
     IEdge e,
     QuickGraph.Concepts.EdgePort sourcePort,
     QuickGraph.Concepts.EdgePort targetPort,
     NGraphviz.Layout.Collections.PointFCollection keys
     )
 {
     if (LayEdge != null)
     {
         LayEdge(this, new EdgeKeysEventArgs(e, sourcePort, targetPort, keys));
     }
 }
 public EdgeKeysEventArgs(
     IEdge e,
     EdgePort sourcePort,
     EdgePort targetPort,
     NGraphviz.Layout.Collections.PointFCollection keys
     )
 {
     if (e==null)
         throw new ArgumentNullException("e");
     this.edge = e;
     this.keys = keys;
     this.sourcePort = sourcePort;
     this.targetPort = targetPort;
 }
예제 #3
0
 public EdgeKeysEventArgs(
     IEdge e,
     EdgePort sourcePort,
     EdgePort targetPort,
     NGraphviz.Layout.Collections.PointFCollection keys
     )
 {
     if (e == null)
     {
         throw new ArgumentNullException("e");
     }
     this.edge       = e;
     this.keys       = keys;
     this.sourcePort = sourcePort;
     this.targetPort = targetPort;
 }