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; }
/// <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)); }
internal QuickGraph.Concepts.EdgePort ConvertEdgePort(NGraphviz.Layout.EdgePort ep) { return (QuickGraph.Concepts.EdgePort)Enum.Parse( typeof(QuickGraph.Concepts.EdgePort), ep.ToString(), true ); }