Public Member Functions | Static Private Attributes

jscicalc.button.SminusButton Class Reference

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

Collaboration diagram for jscicalc.button.SminusButton:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Evaluates current value and subtracts from statistical memory.

Probably this could be derived from EqualsButton.

Author:
J. D. Lamb
Version:
Revision:
1.6

Constructor & Destructor Documentation

jscicalc.button.SminusButton.SminusButton ( CalculatorApplet  applet  ) 

Member Function Documentation

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.

Parameters:
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().


Member Data Documentation

final long jscicalc.button.SminusButton.serialVersionUID = 1L [static, private]

Reimplemented from jscicalc.button.CalculatorButton.


The documentation for this class was generated from the following file: