|
@@ -406,6 +406,7 @@ public class GUI<E> implements CategoryListener {
|
|
for (AbstractCpsObject cps : uNC.upperNode.getNodes()) {
|
|
for (AbstractCpsObject cps : uNC.upperNode.getNodes()) {
|
|
controller.addSelectedObject(cps);
|
|
controller.addSelectedObject(cps);
|
|
}
|
|
}
|
|
|
|
+ controller.getObjectsInDepth();
|
|
uNC.repaint();
|
|
uNC.repaint();
|
|
// or Canvas?
|
|
// or Canvas?
|
|
} else if (((JScrollPane) tabTemp.getSelectedComponent()).getViewport()
|
|
} else if (((JScrollPane) tabTemp.getSelectedComponent()).getViewport()
|
|
@@ -413,6 +414,7 @@ public class GUI<E> implements CategoryListener {
|
|
for (AbstractCpsObject cps : model.getObjectsOnCanvas()) {
|
|
for (AbstractCpsObject cps : model.getObjectsOnCanvas()) {
|
|
controller.addSelectedObject(cps);
|
|
controller.addSelectedObject(cps);
|
|
}
|
|
}
|
|
|
|
+ controller.getObjectsInDepth();
|
|
canvas.repaint();
|
|
canvas.repaint();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1415,7 +1417,8 @@ public class GUI<E> implements CategoryListener {
|
|
|
|
|
|
controller.addObjUpperNode(h, unc.upperNode);
|
|
controller.addObjUpperNode(h, unc.upperNode);
|
|
unc.invalidate();
|
|
unc.invalidate();
|
|
- unc.setXY((int)canvas.getMousePosition().getX(), (int)canvas.getMousePosition().getY());
|
|
|
|
|
|
+ unc.setXY((int) canvas.getMousePosition().getX(),
|
|
|
|
+ (int) canvas.getMousePosition().getY());
|
|
unc.repaint();
|
|
unc.repaint();
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -1437,7 +1440,8 @@ public class GUI<E> implements CategoryListener {
|
|
|
|
|
|
controller.addObjectCanvas(h);
|
|
controller.addObjectCanvas(h);
|
|
canvas.invalidate();
|
|
canvas.invalidate();
|
|
- canvas.setXY((int)canvas.getMousePosition().getX(), (int)canvas.getMousePosition().getY());
|
|
|
|
|
|
+ canvas.setXY((int) canvas.getMousePosition().getX(),
|
|
|
|
+ (int) canvas.getMousePosition().getY());
|
|
canvas.repaint();
|
|
canvas.repaint();
|
|
}
|
|
}
|
|
controller.calculateStateForCurrentTimeStep();
|
|
controller.calculateStateForCurrentTimeStep();
|