public class DataMapControl extends PamControlledUnit implements PamSettings
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.
DBControlUnit
,
BinaryStore
,
OfflineDataMap
,
OfflineDataMapPoint
Constructor and Description |
---|
DataMapControl(java.lang.String unitName) |
Modifier and Type | Method and Description |
---|---|
void |
centreDataAt(PamDataBlock dataBlock,
long menuMouseTime)
Centre the data in all data streams at the given time
|
void |
frameResized() |
long[] |
getDataExtent(OfflineDataStore dataSource)
Get the start and end times for all data associated with
a particular data source
|
static DataMapControl |
getDataMapControl() |
long |
getFirstTime() |
long |
getLastTime() |
java.util.ArrayList<PamDataBlock> |
getMappedDataBlocks() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
PamTabPanel |
getTabPanel()
Gets a reference to a panel to be added to a view
|
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
scrollToData(PamDataBlock dataBlock) |
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 time
|
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addRelatedMenuItems, addXMLParameter, addXMLParameter, addXMLParameter, addXMLParameter, canClose, canPlayViewerSound, createDetectionMenu, createDisplayMenu, createFileMenu, createHelpMenu, fillXMLElement, flushDataBlockBuffers, getFrameNumber, getGuiFrame, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineTaskGroup, getPamController, getPamModuleInfo, getPamProcess, getPamView, getShortUnitType, getSidePanel, getTabClipCopier, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isViewer, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setPamController, setPamModuleInfo, setSidePanel, setTabPanel, setupControlledUnit, stopViewerSound, terminalPrint, terminalPrintln, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUnitName, getUnitType
public static DataMapControl getDataMapControl()
public void setPamView(PamView pamView)
PamControlledUnit
setPamView
in class PamControlledUnit
public void frameResized()
public PamTabPanel getTabPanel()
PamControlledUnit
getTabPanel
in class PamControlledUnit
PamTabPanel
,
PamSidePanel
public void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic java.util.ArrayList<PamDataBlock> getMappedDataBlocks()
public long getFirstTime()
public long getLastTime()
public long[] getDataExtent(OfflineDataStore dataSource)
dataSource
- datasourcepublic java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public void centreDataAt(PamDataBlock dataBlock, long menuMouseTime)
dataBlock
- data block graph sending the commandmenuMouseTime
- time in milliseconds.public void startDataAt(PamDataBlock dataBlock, long menuMouseTime)
dataBlock
- data block graph sending the commandmenuMouseTime
- time in milliseconds.public void scrollToData(PamDataBlock dataBlock)