Prechádzať zdrojové kódy

calculation when element added/removed

Kevin Trometer 8 rokov pred
rodič
commit
c749f9fb44
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      src/ui/view/GUI.java

+ 2 - 0
src/ui/view/GUI.java

@@ -354,6 +354,7 @@ public class GUI<E> implements CategoryListener {
 							ele.getEnergy());
 					refreshTableHolonElement();
 					refreshTableProperties();
+					controller.calculateStateForTimeStep(model.getCurIteration());
 				}
 			}
 		});
@@ -369,6 +370,7 @@ public class GUI<E> implements CategoryListener {
 						controller.deleteElementCanvas(obj.getID(), tempElement.getEleName());
 						refreshTableHolonElement();
 						refreshTableProperties();
+						controller.calculateStateForTimeStep(model.getCurIteration());
 					}
 				}
 			}