Evaluates current value and subtracts from statistical memory. More...

Public Member Functions | |
| SminusButton (CalculatorApplet applet) | |
| Constructor. | |
| void | actionPerformed (java.awt.event.ActionEvent actionEvent) |
| Evaluates current expression and asks CalculatorApplet to subtract it from statistical memory (actually make statistical calculations behave as if this value had been subtracted and one fewer entries put in statistical memory). | |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
Evaluates current value and subtracts from statistical memory.
Probably this could be derived from EqualsButton.
| jscicalc.button.SminusButton.SminusButton | ( | CalculatorApplet | applet | ) |
Constructor.
Sets PObject to SigmaMinus.
| applet | The controller object. |
References jscicalc.button.CalculatorButton.pobject, jscicalc.button.CalculatorButton.setText(), jscicalc.button.CalculatorButton.setTextSize(), jscicalc.button.CalculatorButton.setToolTipText(), jscicalc.button.CalculatorButton.shortcut(), and jscicalc.button.CalculatorButton.tooltip().
| void jscicalc.button.SminusButton.actionPerformed | ( | java.awt.event.ActionEvent | actionEvent | ) |
Evaluates current expression and asks CalculatorApplet to subtract it from statistical memory (actually make statistical calculations behave as if this value had been subtracted and one fewer entries put in statistical memory).
EntryPanel also gets updated.
| actionEvent | The event that generated this method call: usually a button press or called when CalculatorApplet responded to the key associated with this button |
Reimplemented from jscicalc.button.CalculatorButton.
References jscicalc.button.CalculatorButton.applet, jscicalc.Parser.evaluate(), jscicalc.button.CalculatorButton.getApplet(), jscicalc.Parser.getLast(), jscicalc.CalculatorApplet.getMode(), jscicalc.CalculatorApplet.getParser(), jscicalc.CalculatorApplet.getValue(), jscicalc.CalculatorApplet.insert(), jscicalc.CalculatorApplet.newExpression(), jscicalc.button.CalculatorButton.pobject, jscicalc.CalculatorApplet.pushHistory(), jscicalc.CalculatorApplet.setMode(), jscicalc.CalculatorApplet.setShift(), jscicalc.CalculatorApplet.setValue(), jscicalc.pobject.Ans.setValue(), and jscicalc.CalculatorApplet.updateDisplay().
final long jscicalc.button.SminusButton.serialVersionUID = 1L [static, private] |
Reimplemented from jscicalc.button.CalculatorButton.
1.7.1