Beispiel #1
0
 public Diagram()
 {
     nodes = new ObservableCollection <DiagramNode>();
     Nodes = new ReadOnlyObservableCollection <DiagramNode>(nodes);
     links = new ObservableCollection <DiagramLink>();
     Links = new ReadOnlyObservableCollection <DiagramLink>(links);
     ZoomAndPanViewModel  = new ZoomAndPanViewModel();
     UmlDiagramSimulator  = new UmlDiagramSimulator(this);
     UmlDiagramInteractor = new UmlDiagramInteractor(this);
 }
Beispiel #2
0
 public void Simulate(double dt, double viewportWidth, double viewportHeight)
 {
     UmlDiagramSimulator.Simulate(dt, viewportWidth, viewportHeight);
 }
Beispiel #3
0
 public void StopAttracting()
 {
     UmlDiagramSimulator.StopAttracting();
 }