本文整理匯總了Java中org.opensourcephysics.display.GUIUtils.repaintOSPFrames方法的典型用法代碼示例。如果您正苦於以下問題:Java GUIUtils.repaintOSPFrames方法的具體用法?Java GUIUtils.repaintOSPFrames怎麽用?Java GUIUtils.repaintOSPFrames使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.opensourcephysics.display.GUIUtils
的用法示例。
在下文中一共展示了GUIUtils.repaintOSPFrames方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: clearDefaultXML
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
/**
* Clears the current XML default.
*/
public void clearDefaultXML() {
if((xmlDefault==null)||(model==null)) {
return;
}
xmlDefault = null;
clearItem.setEnabled(false);
if(model instanceof Calculation) {
((Calculation) model).resetCalculation();
((Calculation) model).calculate();
} else if(model instanceof Animation) {
((Animation) model).stopAnimation();
((Animation) model).resetAnimation();
((Animation) model).initializeAnimation();
}
GUIUtils.repaintOSPFrames();
}
示例2: setParameter
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void setParameter() {
zeroAverages();
histogramFrame.clearData();
vhistogramFrame.clearData();
initialize();
GUIUtils.repaintOSPFrames();
}
示例3: zeroAverages
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void zeroAverages() {
mcs = 0;
systemEnergyAccumulator = 0;
demonEnergyAccumulator = 0;
acceptedMoves = 0;
histogramFrame.clearData();
GUIUtils.repaintOSPFrames();
if(control==null) {
return;
}
((EjsSimulationControl) control).getControl("mcsNumber").setProperty("value", "");
((EjsSimulationControl) control).getControl("edNumber").setProperty("value", "");
((EjsSimulationControl) control).getControl("eNumber").setProperty("value", "");
((EjsSimulationControl) control).getControl("ratio").setProperty("value", "");
}
示例4: zeroAverages
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void zeroAverages() {
control.clearMessages();
ising.resetData();
eFrame.clearData();
mFrame.clearData();
GUIUtils.repaintOSPFrames();
}
示例5: main
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
/**
* Starts the program and loads an optional arg[0] XML data file.
* @param args String[]
*/
public static void main(String[] args) {
final EinsteinSolidWRApp app = new EinsteinSolidWRApp();
new EinsteinSolidControl(app, app.plotFrame, args);
app.customize();
app.calculate();
GUIUtils.repaintOSPFrames();
}
示例6: zeroAverages
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void zeroAverages() {
nleftAccumulator = 0;
nleftSquaredAccumulator = 0;
zeroedTime = 0;
datasets.clear();
GUIUtils.repaintOSPFrames();
if(control==null) {
return;
}
((EjsSimulationControl)control).getControl("avgNumber").setProperty("value", "");
((EjsSimulationControl)control).getControl("avgNumber2").setProperty("value", "");
((EjsSimulationControl)control).getControl("sigma").setProperty("value", "");
}
示例7: main
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
/**
* Starts the program and loads an optional arg[0] XML data file.
* @param args String[]
*/
public static void main(String[] args) {
final BinomialWRApp app = new BinomialWRApp();
new BinomialControl(app, app.plotFrame, args);
app.customize();
app.calculate();
GUIUtils.repaintOSPFrames();
}
示例8: setDistribution
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void setDistribution() {
if(control==null) {
return;
}
//System.out.println("Option in combo is now "+control.getString("distribution"));
initialize();
stopRunning();
GUIUtils.repaintOSPFrames();
}
示例9: setParameter
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void setParameter() {
histogramFrame.clearData();
initialize();
GUIUtils.repaintOSPFrames();
}
示例10: setParameter
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void setParameter() {
resetData();
initialize();
stopRunning();
GUIUtils.repaintOSPFrames();
}
示例11: setParameter
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void setParameter() {
zeroAverages();
histogramFrame.clearData();
initialize();
GUIUtils.repaintOSPFrames();
}
示例12: zeroAverages
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void zeroAverages() {
ising.resetData();
plotFrame.clearData();
GUIUtils.repaintOSPFrames();
control.clearMessages();
}
示例13: setParameter
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void setParameter() {
calculate();
GUIUtils.repaintOSPFrames();
}
示例14: setParameter
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void setParameter() {
plotFrame.clearData();
initialize();
GUIUtils.repaintOSPFrames();
}
示例15: setParameter
import org.opensourcephysics.display.GUIUtils; //導入方法依賴的package包/類
public void setParameter() {
initialize();
GUIUtils.repaintOSPFrames();
}