Package Localiser
Class ModelControlPanel
java.lang.Object
Localiser.ModelControlPanel
- Direct Known Subclasses:
TMModelControlPanel
Generic pane which shows a list of localisation algorithms
- Author:
- Jamie Macaulay
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Enable the controls.int
getPanel()
boolean
isEnabled
(int i) void
Called whenever a model is enabled.void
populateModelPanel
(ArrayList<LocaliserModel> loclaiserList) Populate the panel with a list of localisersvoid
setEnable
(int i, boolean enable) Enable or disable a model
-
Field Details
-
settings
Image for setting icon
-
-
Constructor Details
-
ModelControlPanel
public ModelControlPanel() -
ModelControlPanel
- Parameters:
targetMotionLocaliser
-targetMotionDialog
-
-
-
Method Details
-
populateModelPanel
Populate the panel with a list of localisers- Parameters:
loclaiserList
- list of loclaisers.
-
modelEnable
public void modelEnable()Called whenever a model is enabled. -
getPanel
- Returns:
- the mainPanel
-
enableControls
public void enableControls()Enable the controls. -
isEnabled
public boolean isEnabled(int i) - Parameters:
i
- model index- Returns:
- true if a particular model is enabled
-
setEnable
public void setEnable(int i, boolean enable) Enable or disable a model- Parameters:
i
- model index to enable/disableenable
- - true to enable, false to disable.
-
getNModels
public int getNModels()
-