Ejemplo n.º 1
0
 public UmlDiagramSimulator(Diagram diagram)
 {
     this.diagram = diagram;
     ForceDefinitions.Add(new Node2NodeRepulsionDefinition());
     ForceDefinitions.Add(new LinkAttractionDefinition());
     ForceDefinitions.Add(new NodeAttractionDefinition());
     ForceDefinitions.Add(new LinkMomentDefinition());
     ForceDefinitions.Add(new TagLaneCaptureDefinition());
 }
Ejemplo n.º 2
0
 public void StartAttracting()
 {
     nodeAttractionDefinition = new NodeAttractionDefinition();
     ForceDefinitions.Add(nodeAttractionDefinition);
 }