public class EventControlPanel extends AbstractControlPanel implements TMDialogComponent, TargetMotionControlPanel
Modifier and Type | Class and Description |
---|---|
class |
EventControlPanel.PopMenuLocalise |
Modifier and Type | Field and Description |
---|---|
static int |
SEL_ALL_EVENTS |
static int |
SEL_CHANGED_EVENTS |
static int |
SEL_ONE_EVENT |
Constructor and Description |
---|
EventControlPanel(TargetMotionControl targetMotionControl) |
Modifier and Type | Method and Description |
---|---|
void |
addLocaliserMenuItem(javax.swing.JPopupMenu menu,
PamDetection 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.
|
boolean |
canLocalise(PamDetection dataUnit)
Used primarily for offline processing.
|
boolean |
canRun() |
boolean |
checkDataLoadTime(OfflineEventDataUnit event) |
void |
enableControls()
Enable controls - based on event selection and other controls
|
java.util.ArrayList<PamDetection> |
getCurrentDetections() |
javax.swing.JPanel |
getPanel()
Get the panel from which the user can scroll through data in the datablock
|
java.util.ArrayList<PamDetection> |
getTargetMotionInfo() |
void |
refreshData()
Refresh all the data in the control panel.
|
void |
saveData(TargetMotionResult tmResult)
Each control panel will have a different kind of data unit.
|
void |
setlayerPanelEnabled(boolean enable)
Enable or disable the panel.
|
void |
setNull()
If the current detection has saved localisation data then set it to null i.e.
|
void |
update(int flag)
Updates the panel depending on the integer flag.
|
createMainPanel, getLayerPanel, getMainPanel
public static final int SEL_ONE_EVENT
public static final int SEL_ALL_EVENTS
public static final int SEL_CHANGED_EVENTS
public EventControlPanel(TargetMotionControl targetMotionControl)
public void setlayerPanelEnabled(boolean enable)
AbstractControlPanel
setlayerPanelEnabled
in class AbstractControlPanel
public java.util.ArrayList<PamDetection> getCurrentDetections()
public void refreshData()
TargetMotionControlPanel
refreshData
in interface TargetMotionControlPanel
public javax.swing.JPanel getPanel()
TargetMotionControlPanel
getPanel
in interface TargetMotionControlPanel
getPanel
in interface TMDialogComponent
public void enableControls()
TMDialogComponent
enableControls
in interface TMDialogComponent
public boolean canRun()
canRun
in interface TMDialogComponent
public void update(int flag)
TMDialogComponent
update
in interface TMDialogComponent
update
in class AbstractControlPanel
public void saveData(TargetMotionResult tmResult)
TargetMotionControlPanel
saveData
in interface TargetMotionControlPanel
public void setNull()
TargetMotionControlPanel
setNull
in interface TargetMotionControlPanel
public boolean checkDataLoadTime(OfflineEventDataUnit event)
public void addLocaliserMenuItem(javax.swing.JPopupMenu menu, PamDetection selectedDetection)
addLocaliserMenuItem
in interface TargetMotionControlPanel
public boolean canLocalise(PamDetection dataUnit)
TargetMotionControlPanel
canLocalise
in interface TargetMotionControlPanel
public java.util.ArrayList<PamDetection> getTargetMotionInfo()
getTargetMotionInfo
in interface TargetMotionControlPanel