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;
 }
Пример #2
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));
 }
Пример #3
0
 internal QuickGraph.Concepts.EdgePort ConvertEdgePort(NGraphviz.Layout.EdgePort ep)
 {
     return (QuickGraph.Concepts.EdgePort)Enum.Parse(
         typeof(QuickGraph.Concepts.EdgePort),
         ep.ToString(),
         true
         );
 }