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

Constructor Index

 o CalculatorApplet()

Method Index

 o configure()
Configures a CalculatorPanelxx.
 o digit(int)
Plays a sound for a digit between 0 and 9.
 o dot()
Plays a sound for dot(.) character.
 o init()
Initializes the applet.
 o op(int)
Plays a sound for an operator code.
 o stop()
Stops the threads in the embedded panels.
 o toString()

Constructors

 o CalculatorApplet
  public CalculatorApplet()

Methods

 o 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
 o configure
  public void configure()
Configures a CalculatorPanelxx.
 o digit
  public void digit(int iDigit)
Plays a sound for a digit between 0 and 9.
Parameters:
iDigit - the digit.
 o 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
 o dot
  public void dot()
Plays a sound for dot(.) character.
 o stop
  public void stop()
Stops the threads in the embedded panels.
Overrides:
stop in class Applet
 o toString
  public String toString()
Overrides:
toString in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index