Class Opcom

java.lang.Object
  |
  +--Opcom

public class Opcom
extends java.lang.Object

Class for creating and maintaining the GUI. Contains a plotter panel with an internal thread taking care of the plotting.


Constructor Summary
Opcom()
           
 
Method Summary
 void initializeGUI()
          Create the GUI.
static void main(java.lang.String[] argv)
           
 void putDataPoint(se.lth.control.DoublePoint dp)
          Sends a new data point to the plotter panel.
 void resetAmplitude(double amp)
          Resets the amplitude to 0.1.
 void setSinus(Sinus sin)
          Sets up a reference to sinus.
 void start()
          Starts the thread in the plotter panel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Opcom

public Opcom()
Method Detail

start

public void start()
Starts the thread in the plotter panel


setSinus

public void setSinus(Sinus sin)
Sets up a reference to sinus. Called from Main.


initializeGUI

public void initializeGUI()
Create the GUI. Called from Main.


resetAmplitude

public void resetAmplitude(double amp)
Resets the amplitude to 0.1. Called from Sinus. InvokeLater must be used since this is not the event-dispatching thread


putDataPoint

public void putDataPoint(se.lth.control.DoublePoint dp)
Sends a new data point to the plotter panel. Called from Sinus.


main

public static void main(java.lang.String[] argv)