Class polarDust.calculator.CalculatorApplet
All Packages Class Hierarchy This Package Previous Next Index
Class polarDust.calculator.CalculatorApplet
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----polarDust.calculator.CalculatorApplet
- public class CalculatorApplet
- extends Applet
- implements CalcConstants
CalculatorApplet is a applet wrapper around calculators.
Accepts one parameter: CALCCODE the code of the calculator.
Values for the parameter:
"01" simple calculator.
"02" simple calculator with paper tape.
"03" calculator with more operations.
The source code.
- Version:
- 0.9, 1996.06.04
- Author:
- Sorin Lazareanu
-
CalculatorApplet()
-
-
configure()
- Configures a CalculatorPanelxx.
-
digit(int)
- Plays a sound for a digit between 0 and 9.
-
dot()
- Plays a sound for dot(.) character.
-
init()
- Initializes the applet.
-
op(int)
- Plays a sound for an operator code.
-
stop()
- Stops the threads in the embedded panels.
-
toString()
-
CalculatorApplet
public CalculatorApplet()
init
public void init()
- Initializes the applet. Contains one component CalculatorPanelxx.
Gets the CALCODE applet parameter and instantiates
from CalculatorPanelxx classes - where xx is passed by CALCODE.
Starts a thread that loads sounds.
- Overrides:
- init in class Applet
configure
public void configure()
- Configures a CalculatorPanelxx.
digit
public void digit(int iDigit)
- Plays a sound for a digit between 0 and 9.
- Parameters:
- iDigit - the digit.
op
public void op(int iDigit)
- Plays a sound for an operator code.
- Parameters:
- iDigit - the operator code (ADD, SUB, MUL, DIV, EQU, PRC)
- See Also:
- CalcConstants
dot
public void dot()
- Plays a sound for dot(.) character.
stop
public void stop()
- Stops the threads in the embedded panels.
- Overrides:
- stop in class Applet
toString
public String toString()
- Overrides:
- toString in class Component
All Packages Class Hierarchy This Package Previous Next Index