private void UpdateMsaglEdge(MsaglGraphs.Edge msaglEdge, SgvlGraphs.Edge sgvlEdge) { // Метка ребра UpdateMsaglEdgeLabel(msaglEdge, sgvlEdge); // Цвет ребра UpdateMsaglEdgeColor(msaglEdge, sgvlEdge); }
private void OnEdgeColorChanged(SgvlGraphs.Edge edge) { var msaglEdge = MsaglGraph.EdgeById($"{edge.SourceVertex.Number}-{edge.TargetVertex.Number}"); UpdateMsaglEdgeColor(msaglEdge, edge); }
private void UpdateMsaglEdgeLabel(MsaglGraphs.Edge msaglEdge, SgvlGraphs.Edge sgvlEdge) { msaglEdge.LabelText = sgvlEdge.Label; }
private void UpdateMsaglEdgeColor(MsaglGraphs.Edge msaglEdge, SgvlGraphs.Edge sgvlEdge) { msaglEdge.Attr.Color = new MsaglGraphs.Color(sgvlEdge.Color.A, sgvlEdge.Color.R, sgvlEdge.Color.G, sgvlEdge.Color.B); }
private void UpdateMsaglEdgeBold(MsaglGraphs.Edge msaglEdge, SgvlGraphs.Edge sgvlEdge) { if (sgvlEdge.Bold) msaglEdge.Attr.LineWidth = 2; else msaglEdge.Attr.LineWidth = 1; }