|
@@ -899,11 +899,15 @@ public class GUI<E> implements CategoryListener {
|
|
|
ArrayList<HolonElement> tempList = new ArrayList<>();
|
|
|
for (CpsObject cps : model.getObjectsOnCanvas()) {
|
|
|
if (cps instanceof HolonObject) {
|
|
|
- for (HolonElement h : ((HolonObject)cps).getElements()) {
|
|
|
+ for (HolonElement h : ((HolonObject) cps).getElements()) {
|
|
|
tempList.add(h);
|
|
|
unitGraph.repaintWithNewElement(tempList);
|
|
|
+ unitGraph.fillArrayofValue();
|
|
|
tempList.remove(0);
|
|
|
}
|
|
|
+ } else if (cps instanceof HolonSwitch) {
|
|
|
+ unitGraph.repaintWithNewSwitch((HolonSwitch) cps);
|
|
|
+ unitGraph.fillArrayofBooleans();
|
|
|
}
|
|
|
}
|
|
|
unitGraph.empty();
|
|
@@ -1160,7 +1164,7 @@ public class GUI<E> implements CategoryListener {
|
|
|
private void showMenu(MouseEvent e) {
|
|
|
popup.show(e.getComponent(), e.getX(), e.getY());
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
|