コード例 #1
0
 public void StopAttracting()
 {
     if (nodeAttractionDefinition != null)
     {
         ForceDefinitions.Remove(nodeAttractionDefinition);
         nodeAttractionDefinition = null;
     }
 }
コード例 #2
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());
 }
コード例 #3
0
 public void StartAttracting()
 {
     nodeAttractionDefinition = new NodeAttractionDefinition();
     ForceDefinitions.Add(nodeAttractionDefinition);
 }