private void endMacro() { // cons now holds a reference to the macroConstruction macro.initMacro(cons, macroInputLabels, macroOutputLabels); // ad the newly built macro to the kernel origKernel.addMacro(macro); // update construction resets the nearto relations in macro, so "outer // world" won't affect it cons.updateConstruction(true); // set kernel and construction back to the original values initKernelVars(); }
/** * Recompute all objects. * * @param randomize * whether to randomize random numbers */ public final void updateConstruction(boolean randomize) { // views are notified about update at the end of this method cons.updateConstruction(randomize); // latexes in GeoGebraWeb are rendered afterwards and set updateEVAgain if (getUpdateAgain()) { setUpdateAgain(false, null); app.scheduleUpdateConstruction(); } else { notifyRepaint(); } }
/** * update construction n times * * @param randomize * whether variables should be randomized * @param n * number of repetitions */ public void updateConstruction(boolean randomize, int n) { // views are notified about update at the end of this method for (int i = 0; i < n; i++) { cons.updateConstruction(randomize); } // latexes in GeoGebraWeb are rendered afterwards and set updateEVAgain if (getUpdateAgain()) { setUpdateAgain(false, null); app.scheduleUpdateConstruction(); } else { notifyRepaint(); } }
optCons.updateConstruction(false); isrunning = false;
EuclidianViewInterfaceCommon ev = app.getActiveEuclidianView(); app.getGgbApi().evalXML(copiedXMLforSameWindow.toString()); app.getKernel().getConstruction().updateConstruction(false); if (ev == app.getEuclidianView1()) { app.setActiveView(App.VIEW_EUCLIDIAN); app.getKernel().getConstruction().updateConstruction(false); if (ev == app.getEuclidianView1()) { app.setActiveView(App.VIEW_EUCLIDIAN);
macroCons.updateConstruction(false); copyP.setValue(movingSlider.getIntervalMin());
macroCons.updateConstruction(false);