Package targetMotionOld.dialog
Class TMModelControlPanel
java.lang.Object
Localiser.ModelControlPanel
targetMotionOld.dialog.TMModelControlPanel
- All Implemented Interfaces:
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
Fields inherited from class Localiser.ModelControlPanel
settings
-
Constructor Summary
ConstructorDescriptionTMModelControlPanel
(TargetMotionLocaliser targetMotionLocaliser, TargetMotionDialog targetMotionDialog) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canRun()
void
Enable the controls.getPanel()
void
Called whenever a model is enabled.void
setCurrentEventIndex
(int eventIndex, Object sender) Current event has been set (possibly in one of the other panels)Methods inherited from class Localiser.ModelControlPanel
getNModels, isEnabled, populateModelPanel, setEnable
-
Constructor Details
-
TMModelControlPanel
public TMModelControlPanel(TargetMotionLocaliser targetMotionLocaliser, TargetMotionDialog targetMotionDialog) - Parameters:
targetMotionLocaliser
-targetMotionDialog
-
-
-
Method Details
-
modelEnable
public void modelEnable()Description copied from class:ModelControlPanel
Called whenever a model is enabled.- Overrides:
modelEnable
in classModelControlPanel
-
setCurrentEventIndex
Description copied from interface:TMDialogComponent
Current event has been set (possibly in one of the other panels)- Specified by:
setCurrentEventIndex
in interfaceTMDialogComponent
-
getPanel
- Specified by:
getPanel
in interfaceTMDialogComponent
- Overrides:
getPanel
in classModelControlPanel
- Returns:
- the mainPanel
-
canRun
public boolean canRun()- Specified by:
canRun
in interfaceTMDialogComponent
- Returns:
- true if settigns on this panel think it's possible to start a run
-
enableControls
public void enableControls()Description copied from class:ModelControlPanel
Enable the controls.- Specified by:
enableControls
in interfaceTMDialogComponent
- Overrides:
enableControls
in classModelControlPanel
-