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.
-
controlPanel
- The control panel which is responsible for handling users commands.
-
mach
- The current machine state.
-
machinePanel
- The panel that displays the machine components.
-
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.
-
refresh()
-
machinePanel
public MachinePanel machinePanel
- The panel that displays the machine components.
mach
public MachineI mach
- The current machine state.
controlPanel
public ControlPanel controlPanel
- The control panel which is responsible for handling users commands.
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.
refresh
public void refresh()
All Packages Class Hierarchy This Package Previous Next Index