public void DrawRelation(List <Node> nodes, NodeContext context) { if (nodes == null) { Debug.Log("Re-open Uml editor"); return; } for (int i = 0; i < nodes.Count; i++) //n1 { for (int j = 0; j < nodes.Count; j++) //n2 { for (int k = 0; k < classRelations.Count; k++) { for (int p = 0; p < nodes[i].listProperty.Count; p++) { if (context.IsClassInCurrentContext(nodes[i].id) && context.IsClassInCurrentContext(nodes[j].id)) { if (classRelations[k].IsRelevantRelation(nodes[i].id, nodes[i].listProperty[p].ID, nodes[j].id)) { DrawUtils.DrawNodeCurve(nodes[i].transform, nodes[j].transform, p, 70); } } } } } } }
public void Draw(List <Actor> actors, List <UseCase> useCases) { for (int i = 0; i < listOfRelation.Count; i++) { for (int j = 0; j < actors.Count; j++) { for (int k = 0; k < useCases.Count; k++) { if (listOfRelation[i].IsRelation(actors[j].ID, useCases[k].ID)) { DrawUtils.DrawNodeCurve(actors[j].transform, useCases[k].transform, 0, 30); } } } } }