Class Project

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----Project

public class Project
extends Applet
implements ActionListener, ItemListener
This is the main class of the project, which extends Applet It contains Matrix (worksheet), Elements' Toolbar and simulation's control buttons


Constructor Index

 o Project()

Method Index

 o actionPerformed(ActionEvent)
Processes action events occurring on this component.
 o addWaveViewer()
 o getFrame()
This method returns most upper parent frame.
 o init()
This method initializes the applet.
 o itemStateChanged(ItemEvent)
Handles the itemStateChanged event.
 o loadCircuit(String)
 o loadText(String)
 o paint(Graphics)
This method is called to draw this component - implementation double buffering technique.
 o update(Graphics)
Updates this component.

Constructors

 o Project
 public Project()

Methods

 o init
 public void init()
This method initializes the applet.

Overrides:
init in class Applet
 o paint
 public void paint(Graphics g)
This method is called to draw this component - implementation double buffering technique.

Parameters:
g - the graphics context.
Overrides:
paint in class Container
See Also:
Graphics
 o update
 public void update(Graphics g)
Updates this component.

Parameters:
g - the specified context to use for updating.
Overrides:
update in class Container
 o getFrame
 public Frame getFrame()
This method returns most upper parent frame.

Returns:
parent frame.
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
Handles the itemStateChanged event. Switches pulldown resistor and coupled capacitor.

Parameters:
e - the item event
 o addWaveViewer
 public void addWaveViewer()
 o actionPerformed
 public void actionPerformed(ActionEvent e)
Processes action events occurring on this component.

Parameters:
e - the action event.
See Also:
ActionListener
 o loadCircuit
 public String loadCircuit(String name)
 o loadText
 public void loadText(String text)