All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class duckMachine.GUI.MachineFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----duckMachine.GUI.CloseFrame
                                           |
                                           +----duckMachine.GUI.MachineFrame

public class MachineFrame
extends CloseFrame
The main frame of the graphical interface to the machine.


Variable Index

 o controlPanel
The control panel which is responsible for handling users commands.
 o mach
The current machine state.
 o machinePanel
The panel that displays the machine components.

Constructor Index

 o MachineFrame(MachineI, InputStream, OutputStream)
The main frame creates a machine panel, a control panel, and then listens to Window Closing events and exits the application when it detects one.

Method Index

 o refresh()

Variables

 o machinePanel
 public MachinePanel machinePanel
The panel that displays the machine components.

 o mach
 public MachineI mach
The current machine state.

 o controlPanel
 public ControlPanel controlPanel
The control panel which is responsible for handling users commands.

Constructors

 o MachineFrame
 public MachineFrame(MachineI mach,
                     InputStream fromMachine,
                     OutputStream toMachine)
The main frame creates a machine panel, a control panel, and then listens to Window Closing events and exits the application when it detects one. The frame also serves as the communication link from the machine panels to the control panel. The stream arguments are presumable connected to the machine's input and output ports.

Methods

 o refresh
 public void refresh()

All Packages  Class Hierarchy  This Package  Previous  Next  Index