Package Map
Class MapController
java.lang.Object
PamController.PamControlledUnit
Map.MapController
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider
- 
Field Summary
FieldsFields inherited from class PamController.PamControlledUnit
isMixed, isViewer - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddMouseAdapter(MouseAdapter mouseAdapter) voidaddMouseAdapterToMapPanel(MouseAdapter mouseAdapter) protected voidaddSimpleMap(SimpleMap aMap) doubleintstatic LatLongintlonggetTabSpecificMenuBar(Frame parentFrame, JMenuBar standardMenu, PamGui pamGui) Create a tab specific menu to go with this PamControlledUnit.voidmapCanScroll(boolean b) voidnotifyModelChanged(int changeType) General notification when the PAMGAURD model changes.voidprotected voidremoveSimpleMap(SimpleMap aMap) booleanCalled to remove a unit.booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) protected static voidsetMouseClickLatLong(LatLong mouseClickLatLong) protected voidsetMouseMoveAction(int mouseMoveAction) 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, getUnitTaskManager, getUnitTaskManager, getUnitType, getVerboseLevel, gotoTab, isInMainConfiguration, isNetRx, isViewer, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, rename, saveViewerData, setFrameNumber, setModuleStatusManager, setPamConfiguration, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setToolbarComponent, setUnitTaskManager, setupControlledUnit, stopViewerSound, tellModule, terminalPrint, terminalPrintln, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface PamController.PamSettings
getUnitTypeMethods 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:PamControlledUnitCalled to remove a unit.- Overrides:
 removeUnitin classPamControlledUnit- Returns:
 - try (not used)
 
 - 
getTabSpecificMenuBar
Description copied from class:PamControlledUnitCreate 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:
 getTabSpecificMenuBarin 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:PamControlledUnitGeneral notification when the PAMGAURD model changes.- Overrides:
 notifyModelChangedin 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
 - 
setMouseClickLatLong
 - 
setMouseMoveAction
protected void setMouseMoveAction(int mouseMoveAction)  - 
getMouseMoveAction
public int getMouseMoveAction() - 
addSimpleMap
 - 
removeSimpleMap
 - 
getSettingsReference
- Specified by:
 getSettingsReferencein interfacePamSettings- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()- Specified by:
 getSettingsVersionin interfacePamSettings- Returns:
 - An integer version number for the settings
 
 - 
restoreSettings
- Specified by:
 restoreSettingsin interfacePamSettings- 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
 
 
 -