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 Link icon

    • pamStarted Link icon

      void pamStarted()
    • pamEnded Link icon

      void pamEnded()
    • modelChanged Link icon

      void modelChanged(int changeType)
    • addControlledUnit Link icon

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

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

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

      void setTitle(String title)
    • getFrameNumber Link icon

      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 Link icon

      JFrame getGuiFrame()
    • enableGUIControl Link icon

      void enableGUIControl(boolean enable)
      Enable and disable the entire GUI.
      Parameters:
      enable - - true to enable the GUI/