Class Graph
Class Graph
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----Graph
- class Graph
- extends Frame
This sets up the plot selections under "File" menu selection.
The selected plot is then drawn using double buffered graphics.
-
Graph()
- This sets up the plot selections in the "File" sub menu
-
handleEvent(Event)
- Window,menu,and button handling.
-
paint(Graphics)
- Paint the window graphics.
-
redraw()
- Update the screen
-
update(Graphics)
- Use double buffering to prevent flickering images.
Graph
public Graph()
- This sets up the plot selections in the "File" sub menu
redraw
public void redraw()
- Update the screen
update
public final void update(Graphics g)
- Use double buffering to prevent flickering images.
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Paint the window graphics. Label and draw the selected plot in the plot window.
- Overrides:
- paint in class Component
handleEvent
public boolean handleEvent(Event event)
- Window,menu,and button handling. If the window is closed clean up.
If "Select Signal" is selected in the menu then open corresponding plot window.
If exit is selected in the menu clean up and close window.
- Overrides:
- handleEvent in class Component