Package Map
Class MapController
java.lang.Object
PamController.PamControlledUnit
Map.MapController
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMouseAdapter
(MouseAdapter mouseAdapter) void
addMouseAdapterToMapPanel
(MouseAdapter mouseAdapter) double
int
static LatLong
int
long
getTabSpecificMenuBar
(Frame parentFrame, JMenuBar standardMenu, PamGui pamGui) Create a tab specific menu to go with this PamControlledUnit.void
mapCanScroll
(boolean b) void
notifyModelChanged
(int changeType) General notification when the PAMGAURD model changes.void
boolean
Called to remove a unit.boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) Methods inherited from class PamController.PamControlledUnit
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addPamProcess, addRelatedMenuItems, canClose, canPlayViewerSound, createDetectionMenu, createDisplayMenu, createFileMenu, createHelpMenu, flushDataBlockBuffers, getBackupInformation, getFrameNumber, getGUI, getGuiFrame, getInstanceIndex, getModuleStatus, getModuleStatusManager, getModuleSummary, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineState, getOfflineTaskGroup, getPamConfiguration, getPamController, getPamModuleInfo, getPamProcess, getPamView, getPlugin, getShortUnitType, getSidePanel, getTabClipCopier, getTabPanel, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isInMainConfiguration, isNetRx, isViewer, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, rename, saveViewerData, setFrameNumber, setModuleStatusManager, setPamConfiguration, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setToolbarComponent, setupControlledUnit, stopViewerSound, tellModule, terminalPrint, terminalPrintln, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface PamController.PamSettings
getUnitType
Methods inherited from interface PamController.SettingsNameProvider
getUnitName
-
Field Details
-
unitType
- See Also:
-
MOUSE_PAN
public static final int MOUSE_PAN- See Also:
-
MOUSE_MEASURE
public static final int MOUSE_MEASURE- See Also:
-
-
Constructor Details
-
MapController
-
-
Method Details
-
removeUnit
public boolean removeUnit()Description copied from class:PamControlledUnit
Called to remove a unit.- Overrides:
removeUnit
in classPamControlledUnit
- Returns:
- try (not used)
-
getTabSpecificMenuBar
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 classPamControlledUnit
- Parameters:
standardMenu
- the standard menu for the Pam GUI.- Returns:
- a complete menu bar to be shown while a particular tab is selected
-
getContourPoints
-
notifyModelChanged
public void notifyModelChanged(int changeType) Description copied from class:PamControlledUnit
General notification when the PAMGAURD model changes.- Overrides:
notifyModelChanged
in classPamControlledUnit
- Parameters:
changeType
- type of change
-
getMaxInterpolationTime
public int getMaxInterpolationTime() -
addMouseAdapter
-
getMapTabPanelControl
-
getMapStuff
public double getMapStuff() -
addMouseAdapterToMapPanel
-
mapCanScroll
public void mapCanScroll(boolean b) -
getMapCentreLatLong
-
refreshDetectorList
public void refreshDetectorList() -
getMouseClickLatLong
-
getMouseMoveAction
public int getMouseMoveAction() -
getSettingsReference
- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
restoreSettings
- Specified by:
restoreSettings
in interfacePamSettings
- 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
-