A C D E F G I M P R S T

A

actionPerformed(ActionEvent) - Method in class ComplexCalc
Eventhandler (ActionListener) for buttonpresses
add(ComplexNumber) - Method in class ComplexNumber
add two complex numbers
result is returned

C

ComplexCalc - class ComplexCalc.
Programm: ComplexCalc
Copyright: 2002 Andreas Gohr, Frank Schubert
License: GPL2 or higher

Info: Main class, implements all needed listeners
ComplexCalc() - Constructor for class ComplexCalc
Constructor
ComplexNumber - class ComplexNumber.
Programm: ComplexCalc
Copyright: 2002 Frank Schubert, Andreas Gohr
License: GPL2 or higher

Info: Complex number calculations
ComplexNumber() - Constructor for class ComplexNumber
dummy constructor (initializes with 0+0i)
ComplexNumber(double, double) - Constructor for class ComplexNumber
constructor
ComplexNumber(String) - Constructor for class ComplexNumber
constructor #2 uses regular expression for complex number as String

D

Diagram - class Diagram.
Programm: ComplexCalc
Copyright: 2002 Andreas Gohr, Frank Schubert
License: GPL2 or higher

Info: paints the graphical representation of two complex numbers and an operation on them
Diagram(MouseListener) - Constructor for class Diagram
Constructor
div(ComplexNumber) - Method in class ComplexNumber
divide two complex numbers
result is returned
Throws exeption on division by Zero

E

e2iX(double) - Method in class Diagram
Calculates screen coordinate from realworld coordinate (X-Axis)
e2iY(double) - Method in class Diagram
Calculates screen coordinate from realworld coordinate (X-Axis)

F

focusGained(FocusEvent) - Method in class ComplexCalc
not implemented
focusLost(FocusEvent) - Method in class ComplexCalc
Eventhandler (FocusListener) for textfield focus changes

G

getIm() - Method in class ComplexNumber
returns imaginary value as double
getRe() - Method in class ComplexNumber
returns real value as double

I

i2eX(double) - Method in class Diagram
Calculates realworld coordinate from screen coordinate (X-Axis)
i2eY(double) - Method in class Diagram
Calculates realworld coordinate from screen coordinate (Y-Axis)
InputPanel - class InputPanel.
Programm: ComplexCalc
Copyright: 2002 Andreas Gohr, Frank Schubert
License: GPL2 or higher

Info: JPanel class that provides the input controls for ComplexCalc
InputPanel(ActionListener, FocusListener) - Constructor for class InputPanel
Constructor

M

main(String[]) - Static method in class ComplexCalc
Main routine - no args are used
mouseClicked(MouseEvent) - Method in class ComplexCalc
Eventhandler (MouseListener) for clicks inside the diagram
mouseEntered(MouseEvent) - Method in class ComplexCalc
not implemented
mouseExited(MouseEvent) - Method in class ComplexCalc
not implemented
mousePressed(MouseEvent) - Method in class ComplexCalc
not implemented
mouseReleased(MouseEvent) - Method in class ComplexCalc
not implemented
mul(ComplexNumber) - Method in class ComplexNumber
multiply two complex numbers
result is returned

P

paint(Graphics) - Method in class Diagram
paints the diagram

R

recalc() - Method in class Diagram
calculate the result value

S

setOp(String) - Method in class Diagram
set operator and recalculate
setTf1(String) - Method in class InputPanel
Sets the value of the first Textfield
setTf2(String) - Method in class InputPanel
Sets the value of the second Textfield
setVal1(ComplexNumber) - Method in class Diagram
Set first operand and recalculate
setVal2(ComplexNumber) - Method in class Diagram
Set second operand and recalculate
setValR(ComplexNumber) - Method in class Diagram
Set new result value and repaint
sub(ComplexNumber) - Method in class ComplexNumber
subtract two complex numbers
result is returned

T

toString() - Method in class ComplexNumber
returns complex number as rounded String

A C D E F G I M P R S T