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 Details

    • pamStarted

      void pamStarted()
    • pamEnded

      void pamEnded()
    • modelChanged

      void modelChanged(int changeType)
    • addControlledUnit

      void addControlledUnit(PamControlledUnit controlledUnit)
      Called whenever a pamcontrolled unit is added ot the model.
      Parameters:
      controlledUnit - - the added controlled unit.
    • showControlledUnit

      void showControlledUnit(PamControlledUnit unit)
      Show the GUI for a specific controlled unit
      Parameters:
      unit - -the controlled unit to show.
    • removeControlledUnit

      void removeControlledUnit(PamControlledUnit controlledUnit)
      Called whenever a controlled unit is removed.
      Parameters:
      controlledUnit -
    • setTitle

      void setTitle(String title)
    • 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/