Package Map

Class MapController

All Implemented Interfaces:
PamSettings, SettingsNameProvider

public class MapController extends PamControlledUnit implements PamSettings
  • Field Details Link icon

  • Constructor Details Link icon

    • MapController Link icon

      public MapController(String name)
  • Method Details Link icon

    • removeUnit Link icon

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

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

      public ArrayList<MapContourValues> getContourPoints()
    • notifyModelChanged Link icon

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

      public int getMaxInterpolationTime()
    • addMouseAdapter Link icon

      public void addMouseAdapter(MouseAdapter mouseAdapter)
    • getMapTabPanelControl Link icon

      public MapTabPanelControl getMapTabPanelControl()
    • getMapStuff Link icon

      public double getMapStuff()
    • addMouseAdapterToMapPanel Link icon

      public void addMouseAdapterToMapPanel(MouseAdapter mouseAdapter)
    • mapCanScroll Link icon

      public void mapCanScroll(boolean b)
    • getMapCentreLatLong Link icon

      public LatLong getMapCentreLatLong()
    • refreshDetectorList Link icon

      public void refreshDetectorList()
    • getMouseClickLatLong Link icon

      public static LatLong getMouseClickLatLong()
    • setMouseClickLatLong Link icon

      protected static void setMouseClickLatLong(LatLong mouseClickLatLong)
    • setMouseMoveAction Link icon

      protected void setMouseMoveAction(int mouseMoveAction)
    • getMouseMoveAction Link icon

      public int getMouseMoveAction()
    • addSimpleMap Link icon

      protected void addSimpleMap(SimpleMap aMap)
    • removeSimpleMap Link icon

      protected void removeSimpleMap(SimpleMap aMap)
    • getSettingsReference Link icon

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

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

      public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
      Specified by:
      restoreSettings in interface PamSettings
      Parameters:
      pamControlledUnitSettings -
      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