Package clickTrainDetector.layout.mht
Class SimpleMHTVarPane
java.lang.Object
PamController.SettingsPane<T>
clickTrainDetector.layout.mht.MHTVarSettingsPane<SimpleChi2VarParams>
clickTrainDetector.layout.mht.SimpleMHTVarPane
- Direct Known Subclasses:
AmplitudeMHTVarPane
,BearingMHTVarPane
,CorrelationMHTPane
,IDIChi2Pane
Simple Pane to change MHT settings. This contains a check box and slider bar which changes the
error value.
- Author:
- Jamie Macaulay
-
Constructor Summary
ConstructorDescriptionSimpleMHTVarPane
(SimpleChi2VarParams simpleChi2Var) SimpleMHTVarPane
(SimpleChi2VarParams simpleChi2Var, ResultConverter resultsConverter) -
Method Summary
Modifier and TypeMethodDescriptioncreateAdvMHTVarPane
(SimpleChi2VarParams simpleChi2VarParams, ResultConverter resultConverter) Create the advanced settings pane.static double
error2Slider
(double errorValue, double errorScaleValue) Convert an error value to a slider value.javafx.scene.Node
Get node for GUI change of settings.getName()
Get the name of the pane.getParams
(SimpleChi2VarParams currParams) Get settings from the pane.void
notifyChange
(int flag, Object data) General function which allows panes to be notified of some change]void
Called when settings pane is first initialised.void
setParams
(SimpleChi2VarParams simpleChi2VarParams) Called whenever the pane is first shown/open to set pane to show current settings.void
Creates pane allowing the user to change fine scale things such as error limits.static double
slider2Error
(double sliderValue, double errorScaleValue) Convert a slider value to an error value.Methods inherited from class clickTrainDetector.layout.mht.MHTVarSettingsPane
getMhtAlgorithm, setMhtAlgorithm
Methods inherited from class PamController.SettingsPane
getAWTWindow, getFXWindow, getHelpPoint, getOwnerWindow, repackContents, setDefaults, setOwnerWindow
-
Constructor Details
-
SimpleMHTVarPane
-
SimpleMHTVarPane
-
-
Method Details
-
createAdvMHTVarPane
public AdvMHTVarPane createAdvMHTVarPane(SimpleChi2VarParams simpleChi2VarParams, ResultConverter resultConverter) Create the advanced settings pane.- Returns:
- the advanced settings pane.
-
showAdvPane
public void showAdvPane()Creates pane allowing the user to change fine scale things such as error limits. -
getParams
Description copied from class:SettingsPane
Get settings from the pane.- Specified by:
getParams
in classSettingsPane<SimpleChi2VarParams>
- Returns:
- settings class
-
setParams
Description copied from class:SettingsPane
Called whenever the pane is first shown/open to set pane to show current settings.- Specified by:
setParams
in classSettingsPane<SimpleChi2VarParams>
- Parameters:
simpleChi2VarParams
- - current settings class.
-
slider2Error
public static double slider2Error(double sliderValue, double errorScaleValue) Convert a slider value to an error value. The slider is on a log scale in order to allow the user to change by an order of magnitude defined by SCALE_ORDER_MAGNITUDE.- Parameters:
sliderValue
- - the slider valueerrorScaleValue
- the error.
-
error2Slider
public static double error2Slider(double errorValue, double errorScaleValue) Convert an error value to a slider value. The slider is on a log scale in order to allow the user to change by an order of magnitude defined by SCALE_LIMITS.- Parameters:
errorScaleValue
- -sliderValue
- - the slider results
-
getName
Description copied from class:SettingsPane
Get the name of the pane.- Specified by:
getName
in classSettingsPane<SimpleChi2VarParams>
- Returns:
- name of the pane
-
getContentNode
public javafx.scene.Node getContentNode()Description copied from class:SettingsPane
Get node for GUI change of settings.- Specified by:
getContentNode
in classSettingsPane<SimpleChi2VarParams>
-
paneInitialized
public void paneInitialized()Description copied from class:SettingsPane
Called when settings pane is first initialised. This can be used if for example, a the size of a pane is needed for a param. (Sizes are only initialised when Nodes are shown);- Specified by:
paneInitialized
in classSettingsPane<SimpleChi2VarParams>
-
notifyChange
Description copied from class:SettingsPane
General function which allows panes to be notified of some change]- Overrides:
notifyChange
in classSettingsPane<SimpleChi2VarParams>
-