Package dataMap
Class DataMapControl
java.lang.Object
PamController.PamControlledUnit
dataMap.DataMapControl
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
The data map appears only during PAMGUARD viewer mode and is the root of
a navigation system allowing the operator to scroll easily through large
amounts of data.
The primary role of the map is to show a time line of data rate for each module, which may extend from minutes to years, and to relate that map to the positions of the various scroll bars used to navigate through the data.
Data may be loaded from the database and the binary storage system. Data in each will have been mapped into either hour units or units representing the individual files in the binary store.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
centreDataAt
(PamDataBlock dataBlock, long menuMouseTime) Centre the data in all data streams at the given timevoid
long[]
getDataExtent
(OfflineDataStore dataSource) Get the start and end times for all data associated with a particular data sourcestatic DataMapControl
long
getGUI
(int flag) Get the GUI for the PAMControlled unit.long
long
Gets a reference to a panel to be added to a viewvoid
notifyModelChanged
(int changeType) General notification when the PAMGAURD model changes.boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) void
scrollToData
(PamDataBlock dataBlock) void
setFirstTime
(long firstTime) void
setLastTime
(long lastTime) void
setPamView
(PamView pamView) Called whenever the frme of a PamControlledunit changes (including at program startup).void
startDataAt
(PamDataBlock dataBlock, long menuMouseTime) Start the data in all data streams at the given timevoid
updateSingleDataMap
(OfflineDataMap<?> singleDataMap) Update a single data map.Methods inherited from class PamController.PamControlledUnit
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addPamProcess, addRelatedMenuItems, canClose, canPlayViewerSound, createDetectionMenu, createDisplayMenu, createFileMenu, createHelpMenu, flushDataBlockBuffers, getBackupInformation, getFrameNumber, getGuiFrame, getInstanceIndex, getModuleStatus, getModuleStatusManager, getModuleSummary, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineState, getOfflineTaskGroup, getPamConfiguration, getPamController, getPamModuleInfo, getPamProcess, getPamView, getPlugin, getShortUnitType, getSidePanel, getTabClipCopier, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isInMainConfiguration, isNetRx, isViewer, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setModuleStatusManager, setPamConfiguration, setPamController, setPamModuleInfo, 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
-
dataMapParameters
-
-
Constructor Details
-
DataMapControl
-
-
Method Details
-
setFirstTime
public void setFirstTime(long firstTime) - Parameters:
firstTime
- the firstTime to set
-
setLastTime
public void setLastTime(long lastTime) - Parameters:
lastTime
- the lastTime to set
-
getDataMapControl
-
setPamView
Description copied from class:PamControlledUnit
Called whenever the frme of a PamControlledunit changes (including at program startup).- Overrides:
setPamView
in classPamControlledUnit
-
frameResized
public void frameResized() -
getTabPanel
Description copied from class:PamControlledUnit
Gets a reference to a panel to be added to a view- Overrides:
getTabPanel
in classPamControlledUnit
- Returns:
- reference to a PamTabPanel object
- See Also:
-
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
-
getMappedDataBlocks
-
updateSingleDataMap
Update a single data map. Useful when bringing in data from 'non standard' sources. Check overall time limits and redraw, but no total map creation.- Parameters:
singleDataMap
-
-
getFirstTime
public long getFirstTime()- Returns:
- the firstTime for any data in any data block
-
getLastTime
public long getLastTime()- Returns:
- the lastTime for any data in any data block
-
getDataExtent
Get the start and end times for all data associated with a particular data source- Parameters:
dataSource
- datasource- Returns:
- start and end times in milliseconds.
-
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
-
centreDataAt
Centre the data in all data streams at the given time- Parameters:
dataBlock
- data block graph sending the commandmenuMouseTime
- time in milliseconds.
-
startDataAt
Start the data in all data streams at the given time- Parameters:
dataBlock
- data block graph sending the commandmenuMouseTime
- time in milliseconds.
-
scrollToData
-
getDataMapGUI
-
getGUI
Get the GUI for the PAMControlled unit. This has multiple GUI options which are instantiated depending on the view type.- Overrides:
getGUI
in classPamControlledUnit
- Parameters:
flag
- . The GUI type flag defined in PAMGuiManager.- Returns:
- the GUI for the PamControlledUnit unit.
-