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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionEventControlPanel(TargetMotionLocaliser<T> targetMotionLocaliser, TargetMotionDialog<T> targetMotionDialog) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRun()protected voidClear the comment text.voidEnable controls - based on event selection and other controlsintfindEventListIndex(int selEventDBIndex) protected StringGet any text comment from the comment fieldgetPanel()protected booleanvoidvoidprogressReport(EventLocalisationProgress eventLocalisationProgress) voidselectEventIndex(int selEventDBIndex) Called when the database index has been changed somewhere.voidsetCurrentEventIndex(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:
getPanelin interfaceTMDialogComponent- Returns:
- the mainPanel
-
enableControls
public void enableControls()Description copied from interface:TMDialogComponentEnable controls - based on event selection and other controls- Specified by:
enableControlsin interfaceTMDialogComponent
-
setCurrentEventIndex
Description copied from interface:TMDialogComponentCurrent event has been set (possibly in one of the other panels)- Specified by:
setCurrentEventIndexin interfaceTMDialogComponent- Parameters:
sender-
-
selectEventIndex
public void selectEventIndex(int selEventDBIndex) Called when the database index has been changed somewhere.- Parameters:
selEventDBIndex-
-
findEventListIndex
public int findEventListIndex(int selEventDBIndex) -
isSupervised
protected boolean isSupervised()- Returns:
- true of supervised radio button is selected.
-
getComment
Get any text comment from the comment field- Returns:
- comment
-
clearComment
protected void clearComment()Clear the comment text. -
notifyNewResults
public void notifyNewResults() -
canRun
public boolean canRun()- Specified by:
canRunin interfaceTMDialogComponent- Returns:
- true if settigns on this panel think it's possible to start a run
-
progressReport
-