Package PamView
Interface PamViewInterface
- All Known Subinterfaces:
 PAMControllerGUI
- All Known Implementing Classes:
 GuiFrameManager,NullGuiController,PamGui,PamGuiFX,PamGuiManagerFX,PamObjectViewer,PamView
public interface PamViewInterface
- Author:
 - Doug Gillespie
         
Interface to the Pam viewer to receive commands and data from the Pam Model
 
- 
Method Summary
Modifier and TypeMethodDescriptionvoidaddControlledUnit(PamControlledUnit controlledUnit) Called whenever a pamcontrolled unit is added ot the model.voidenableGUIControl(boolean enable) Enable and disable the entire GUI.intvoidmodelChanged(int changeType) voidpamEnded()voidvoidremoveControlledUnit(PamControlledUnit controlledUnit) Called whenever a controlled unit is removed.voidvoidShow the GUI for a specific controlled unit 
- 
Method Details
- 
pamStarted
void pamStarted() - 
pamEnded
void pamEnded() - 
modelChanged
void modelChanged(int changeType)  - 
addControlledUnit
Called whenever a pamcontrolled unit is added ot the model.- Parameters:
 controlledUnit- - the added controlled unit.
 - 
showControlledUnit
Show the GUI for a specific controlled unit- Parameters:
 unit- -the controlled unit to show.
 - 
removeControlledUnit
Called whenever a controlled unit is removed.- Parameters:
 controlledUnit-
 - 
setTitle
 - 
getFrameNumber
int getFrameNumber()- Returns:
 - Frame number used by the multiple GUI frames. All other objects, such as the model view should return invalid input: '<' 0.
 
 - 
getGuiFrame
JFrame getGuiFrame() - 
enableGUIControl
void enableGUIControl(boolean enable) Enable and disable the entire GUI.- Parameters:
 enable- - true to enable the GUI/
 
 -