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); }
public void Simulate(double dt, double viewportWidth, double viewportHeight) { UmlDiagramSimulator.Simulate(dt, viewportWidth, viewportHeight); }
public void StopAttracting() { UmlDiagramSimulator.StopAttracting(); }