Class viewPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----viewPanel
- public class viewPanel
- extends Dialog
- implements ActionListener, WindowListener
class to setup a VIEW pane -
It is responsible for showing wave data results graphically to the user. It needs PTPLOT
as wave viewing class.
-
viewPanel(Frame, String)
-
-
actionPerformed(ActionEvent)
- This method is needed as this class is an action listener.
-
toString()
- this generates a dummy return - all classes have it!
the main class collects everything for simulation by calling this
-
windowActivated(WindowEvent)
- just to satisfy window listener interface
-
windowClosed(WindowEvent)
- just to satisfy window listener interface
-
windowClosing(WindowEvent)
- we want to know if the panel gets closed (window listener interface)
-
windowDeactivated(WindowEvent)
-
-
windowDeiconified(WindowEvent)
- just to satisfy window listener interface
-
windowIconified(WindowEvent)
- just to satisfy window listener interface
-
windowOpened(WindowEvent)
- just to satisfy window listener interface
viewPanel
public viewPanel(Frame f,
String results)
actionPerformed
public void actionPerformed(ActionEvent e)
- This method is needed as this class is an action listener.
(this interface is implemented in this class)
- Parameters:
- e - the user event to handle
toString
public String toString()
- this generates a dummy return - all classes have it!
the main class collects everything for simulation by calling this
- Overrides:
- toString in class Component
windowClosing
public void windowClosing(WindowEvent e)
- we want to know if the panel gets closed (window listener interface)
windowOpened
public void windowOpened(WindowEvent e)
- just to satisfy window listener interface
windowClosed
public void windowClosed(WindowEvent e)
- just to satisfy window listener interface
windowDeiconified
public void windowDeiconified(WindowEvent e)
- just to satisfy window listener interface
windowIconified
public void windowIconified(WindowEvent e)
- just to satisfy window listener interface
windowDeactivated
public void windowDeactivated(WindowEvent e)
windowActivated
public void windowActivated(WindowEvent e)
- just to satisfy window listener interface