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
-
Project()
-
-
actionPerformed(ActionEvent)
-
Processes action events occurring on this component.
-
addWaveViewer()
-
-
getFrame()
- This method returns most upper parent frame.
-
init()
- This method initializes the applet.
-
itemStateChanged(ItemEvent)
- Handles the itemStateChanged event.
-
loadCircuit(String)
-
-
loadText(String)
-
-
paint(Graphics)
- This method is called to draw this component - implementation double buffering technique.
-
update(Graphics)
-
Updates this component.
Project
public Project()
init
public void init()
- This method initializes the applet.
- Overrides:
- init in class Applet
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
update
public void update(Graphics g)
- Updates this component.
- Parameters:
- g - the specified context to use for updating.
- Overrides:
- update in class Container
getFrame
public Frame getFrame()
- This method returns most upper parent frame.
- Returns:
- parent frame.
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Handles the itemStateChanged event. Switches pulldown resistor and coupled capacitor.
- Parameters:
- e - the item event
addWaveViewer
public void addWaveViewer()
actionPerformed
public void actionPerformed(ActionEvent e)
- Processes action events occurring on this component.
- Parameters:
- e - the action event.
- See Also:
- ActionListener
loadCircuit
public String loadCircuit(String name)
loadText
public void loadText(String text)