jscicalc.button.SciButton Class Reference

Button used to toggle scientific notation on or off. More...

Inheritance diagram for jscicalc.button.SciButton:

jscicalc.button.CalculatorButton
Collaboration diagram for jscicalc.button.SciButton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SciButton (CalculatorApplet applet)
 Cosntructor.
void actionPerformed (java.awt.event.ActionEvent actionEvent)
 This is the default actionPerformed.

Static Private Attributes

static final long serialVersionUID = 1L


Detailed Description

Button used to toggle scientific notation on or off.

Author:
J. D. Lamb
Version:
Revision
1.5

Constructor & Destructor Documentation

jscicalc.button.SciButton.SciButton ( CalculatorApplet  applet  ) 


Member Function Documentation

void jscicalc.button.SciButton.actionPerformed ( java.awt.event.ActionEvent  actionEvent  ) 

This is the default actionPerformed.

It checks that the calculator is switched on and then carries out the action associated with this button depending on the state of the CalculatorApplet object. Typically it just asks the CalculatorApplet object to add its PObject to the Parser object at the current insert position and then update the display.

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.button.CalculatorButton.getApplet(), jscicalc.CalculatorApplet.getMode(), jscicalc.CalculatorApplet.getNotation(), jscicalc.button.CalculatorButton.pobject, jscicalc.CalculatorApplet.setMode(), jscicalc.CalculatorApplet.setShift(), jscicalc.Notation.toggle(), and jscicalc.CalculatorApplet.updateDisplay().


Member Data Documentation

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

Reimplemented from jscicalc.button.CalculatorButton.


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

Generated on Sun Jun 1 08:57:56 2008 for Java Scientific Calculator by  doxygen 1.5.5