Package Map

Class MapController

All Implemented Interfaces:
PamSettings, SettingsNameProvider

public class MapController extends PamControlledUnit implements PamSettings
  • Field Details

  • Constructor Details

    • MapController

      public MapController(String name)
  • Method Details

    • removeUnit

      public boolean removeUnit()
      Description copied from class: PamControlledUnit
      Called to remove a unit.
      Overrides:
      removeUnit in class PamControlledUnit
      Returns:
      try (not used)
    • getTabSpecificMenuBar

      public JMenuBar getTabSpecificMenuBar(Frame parentFrame, JMenuBar standardMenu, PamGui pamGui)
      Description copied from class: PamControlledUnit
      Create a tab specific menu to go with this PamControlledUnit.

      Default is to throw back the standard menu to be used. This function should clone the standard menu and then modify the clone (usually by replacing the Display sub menu)

      Overrides:
      getTabSpecificMenuBar in class PamControlledUnit
      Parameters:
      standardMenu - the standard menu for the Pam GUI.
      Returns:
      a complete menu bar to be shown while a particular tab is selected
    • getContourPoints

      public ArrayList<MapContourValues> getContourPoints()
    • notifyModelChanged

      public void notifyModelChanged(int changeType)
      Description copied from class: PamControlledUnit
      General notification when the PAMGAURD model changes.
      Overrides:
      notifyModelChanged in class PamControlledUnit
      Parameters:
      changeType - type of change
    • getMaxInterpolationTime

      public int getMaxInterpolationTime()
    • addMouseAdapter

      public void addMouseAdapter(MouseAdapter mouseAdapter)
    • getMapTabPanelControl

      public MapTabPanelControl getMapTabPanelControl()
    • getMapStuff

      public double getMapStuff()
    • addMouseAdapterToMapPanel

      public void addMouseAdapterToMapPanel(MouseAdapter mouseAdapter)
    • mapCanScroll

      public void mapCanScroll(boolean b)
    • getMapCentreLatLong

      public LatLong getMapCentreLatLong()
    • refreshDetectorList

      public void refreshDetectorList()
    • getMouseClickLatLong

      public static LatLong getMouseClickLatLong()
    • getMouseMoveAction

      public int getMouseMoveAction()
    • getSettingsReference

      public Serializable getSettingsReference()
      Specified by:
      getSettingsReference in interface PamSettings
      Returns:
      The serialisable object that will be stored
    • getSettingsVersion

      public long getSettingsVersion()
      Specified by:
      getSettingsVersion in interface PamSettings
      Returns:
      An integer version number for the settings
    • restoreSettings

      public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
      Specified by:
      restoreSettings in interface PamSettings
      Returns:
      true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required