Package targetMotionModule.panels
Class ModelControlPanel
java.lang.Object
targetMotionModule.panels.ModelControlPanel
- All Implemented Interfaces:
TMDialogComponent
-
Constructor Summary
ConstructorDescriptionModelControlPanel
(TargetMotionLocaliser targetMotionLocaliser, TargetMotionMainPanel targetMotionDialog) -
Method Summary
-
Constructor Details
-
ModelControlPanel
public ModelControlPanel(TargetMotionLocaliser targetMotionLocaliser, TargetMotionMainPanel targetMotionDialog) - Parameters:
targetMotionLocaliser
-targetMotionDialog
-
-
-
Method Details
-
getPanel
- Specified by:
getPanel
in interfaceTMDialogComponent
- 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 interface:TMDialogComponent
Enable controls - based on event selection and other controls- Specified by:
enableControls
in interfaceTMDialogComponent
-
isEnabled
public boolean isEnabled(int i) - Parameters:
i
- model index- Returns:
- true if a particular model is enabled
-
update
public void update(int flag) Description copied from interface:TMDialogComponent
Updates the panel depending on the integer flag.- Specified by:
update
in interfaceTMDialogComponent
-