Package targetMotionOld.dialog
Class EventControlPanel<T extends GroupDetection>
java.lang.Object
targetMotionOld.dialog.EventControlPanel<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
TMDialogComponent
public class EventControlPanel<T extends GroupDetection>
extends Object
implements TMDialogComponent
Reinstated Target motion add-in as used by the click detector. Hope one day still to replace this
with Jamie's new one, but keep this one until Jamie's is working.
- Author:
- Doug Gillespie
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionEventControlPanel
(TargetMotionLocaliser<T> targetMotionLocaliser, TargetMotionDialog<T> targetMotionDialog) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canRun()
void
Enable controls - based on event selection and other controlsint
findEventListIndex
(int selEventDBIndex) getPanel()
void
void
progressReport
(EventLocalisationProgress eventLocalisationProgress) void
selectEventIndex
(int selEventDBIndex) Called when the database index has been changed somewhere.void
setCurrentEventIndex
(int eventIndex, Object sender) Current event has been set (possibly in one of the other panels)
-
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
public EventControlPanel(TargetMotionLocaliser<T> targetMotionLocaliser, TargetMotionDialog<T> targetMotionDialog) - Parameters:
targetMotionLocaliser
-targetMotionDialog
-
-
-
Method Details
-
getPanel
- Specified by:
getPanel
in interfaceTMDialogComponent
- Returns:
- the mainPanel
-
enableControls
public void enableControls()Description copied from interface:TMDialogComponent
Enable controls - based on event selection and other controls- Specified by:
enableControls
in interfaceTMDialogComponent
-
setCurrentEventIndex
Description copied from interface:TMDialogComponent
Current event has been set (possibly in one of the other panels)- Specified by:
setCurrentEventIndex
in interfaceTMDialogComponent
-
selectEventIndex
public void selectEventIndex(int selEventDBIndex) Called when the database index has been changed somewhere.- Parameters:
selEventDBIndex
-
-
findEventListIndex
public int findEventListIndex(int selEventDBIndex) -
notifyNewResults
public void notifyNewResults() -
canRun
public boolean canRun()- Specified by:
canRun
in interfaceTMDialogComponent
- Returns:
- true if settigns on this panel think it's possible to start a run
-
progressReport
-