|
@@ -283,7 +283,6 @@ public class MyCanvas extends JPanel implements MouseListener, MouseMotionListen
|
|
x = e.getX();
|
|
x = e.getX();
|
|
y = e.getY();
|
|
y = e.getY();
|
|
dragging = false;
|
|
dragging = false;
|
|
- tempCps.setPosition(e.getX() - controller.getScaleDiv2(), e.getY() - controller.getScaleDiv2());
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// Rightclick List
|
|
// Rightclick List
|
|
@@ -297,6 +296,7 @@ public class MyCanvas extends JPanel implements MouseListener, MouseMotionListen
|
|
}
|
|
}
|
|
|
|
|
|
doMark = false;
|
|
doMark = false;
|
|
|
|
+ controller.calculateStateForTimeStep(model.getCurIteration());
|
|
repaint();
|
|
repaint();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -413,7 +413,6 @@ public class MyCanvas extends JPanel implements MouseListener, MouseMotionListen
|
|
}
|
|
}
|
|
if (newEdge) {
|
|
if (newEdge) {
|
|
e = new CpsEdge(cps, tempCps);
|
|
e = new CpsEdge(cps, tempCps);
|
|
- controller.calculateStateForTimeStep(model.getCurIteration());
|
|
|
|
controller.AddEdgeOnCanvas(e);
|
|
controller.AddEdgeOnCanvas(e);
|
|
}
|
|
}
|
|
}
|
|
}
|