Package targetMotionModule.panels
Class EventControlPanel
java.lang.Object
targetMotionModule.panels.AbstractControlPanel
targetMotionModule.panels.EventControlPanel
- All Implemented Interfaces:
TargetMotionControlPanel,TMDialogComponent
public class EventControlPanel
extends AbstractControlPanel
implements TMDialogComponent, TargetMotionControlPanel
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocaliserMenuItem(JPopupMenu menu, PamDataUnit selectedDetection) If we want to add a menu item to pop menu in another module then we need to check we can localise the detection, if so then add an option to the menu to localise the selected detection.booleancanLocalise(PamDataUnit dataUnit) Used primarily for offline processing.booleancanRun()booleanvoidEnable controls - based on event selection and other controlsgetPanel()Get the panel from which the user can scroll through data in the datablockvoidRefresh all the data in the control panel.voidsaveData(TargetMotionResult tmResult) Each control panel will have a different kind of data unit.voidsetlayerPanelEnabled(boolean enable) Enable or disable the panel.voidsetNull()If the current detection has saved localisation data then set it to null i.e.voidupdate(int flag) Updates the panel depending on the integer flag.Methods inherited from class targetMotionModule.panels.AbstractControlPanel
createMainPanel, getLayerPanel, getMainPanel
-
Field Details
-
SEL_ONE_EVENT
public static final int SEL_ONE_EVENT- See Also:
-
SEL_ALL_EVENTS
public static final int SEL_ALL_EVENTS- See Also:
-
SEL_CHANGED_EVENTS
public static final int SEL_CHANGED_EVENTS- See Also:
-
-
Constructor Details
-
EventControlPanel
-
-
Method Details
-
setlayerPanelEnabled
public void setlayerPanelEnabled(boolean enable) Description copied from class:AbstractControlPanelEnable or disable the panel. Panel enabled shows the normal panel with all components enabled. Disabling the panel adds an animation over the top of the panel, greys out the rest of the panel and disables all components.- Overrides:
setlayerPanelEnabledin classAbstractControlPanel- Parameters:
enable-
-
getCurrentDetections
-
refreshData
public void refreshData()Description copied from interface:TargetMotionControlPanelRefresh all the data in the control panel. This is called when offline data is loaded, a datablock is changed or data is added to a datablock.- Specified by:
refreshDatain interfaceTargetMotionControlPanel
-
getPanel
Description copied from interface:TargetMotionControlPanelGet the panel from which the user can scroll through data in the datablock- Specified by:
getPanelin interfaceTargetMotionControlPanel- Specified by:
getPanelin interfaceTMDialogComponent- Returns:
- a panel to include in the main dialog
-
enableControls
public void enableControls()Description copied from interface:TMDialogComponentEnable controls - based on event selection and other controls- Specified by:
enableControlsin interfaceTMDialogComponent
-
canRun
public boolean canRun()- Specified by:
canRunin interfaceTMDialogComponent- Returns:
- true if settigns on this panel think it's possible to start a run
-
update
public void update(int flag) Description copied from interface:TMDialogComponentUpdates the panel depending on the integer flag.- Specified by:
updatein interfaceTMDialogComponent- Overrides:
updatein classAbstractControlPanel
-
saveData
Description copied from interface:TargetMotionControlPanelEach control panel will have a different kind of data unit. saveData() is called whenever the 'save' button is pressed and saves localisation data in a format unique to the control panels' data block. e.g. click event data blocks save localisagtion info to the database.- Specified by:
saveDatain interfaceTargetMotionControlPanel
-
setNull
public void setNull()Description copied from interface:TargetMotionControlPanelIf the current detection has saved localisation data then set it to null i.e. get rid of it.- Specified by:
setNullin interfaceTargetMotionControlPanel
-
checkDataLoadTime
-
addLocaliserMenuItem
If we want to add a menu item to pop menu in another module then we need to check we can localise the detection, if so then add an option to the menu to localise the selected detection.- Specified by:
addLocaliserMenuItemin interfaceTargetMotionControlPanel
-
canLocalise
Description copied from interface:TargetMotionControlPanelUsed primarily for offline processing. Returns true if the dataunit can be localised. From the data unit the TargetMotionInformation can be determined. In the case of events this is relatively simple, however for single detections this may be more difficult. For example if using some automatic means to generate the array of detections required for target motion information- Specified by:
canLocalisein interfaceTargetMotionControlPanel
-
getTargetMotionInfo
- Specified by:
getTargetMotionInfoin interfaceTargetMotionControlPanel- Returns:
- a list of all the detection shown in the control panel.
-