|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensourcephysics.controls.AbstractCalculation
AbstractCalculation is a template for simple calculations. Implement the calculate method to create a calculation.
| Field Summary | |
protected Control |
control
|
protected java.text.DecimalFormat |
decimalFormat
|
| Constructor Summary | |
AbstractCalculation()
|
|
| Method Summary | |
abstract void |
calculate()
Does the calculation. |
void |
reset()
Resets the program to its default state. |
void |
resetCalculation()
Resets the calculation to a predefined state. |
void |
setControl(Control control)
Sets object that controls this calculation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Control control
protected java.text.DecimalFormat decimalFormat
| Constructor Detail |
public AbstractCalculation()
| Method Detail |
public void setControl(Control control)
setControl in interface Calculationcontrol - public abstract void calculate()
calculate in interface Calculationpublic void resetCalculation()
resetCalculation in interface Calculationpublic void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||