Package clickTrainDetector.layout.mht
Class SimpleMHTVarPane
java.lang.Object
PamController.SettingsPane<SimpleChi2VarParams>
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
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AdvMHTVarPaneThe advanced settings pane.protected SimpleChi2VarParamsThe current inputprotected SimpleChi2VarParamsReference to the chi2 variable pane the settings pane is associated withprotected javafx.scene.control.Slider - 
Constructor Summary
ConstructorsConstructorDescriptionSimpleMHTVarPane(SimpleChi2VarParams simpleChi2Var) SimpleMHTVarPane(SimpleChi2VarParams simpleChi2Var, ResultConverter resultsConverter)  - 
Method Summary
Modifier and TypeMethodDescriptioncreateAdvMHTVarPane(SimpleChi2VarParams simpleChi2VarParams, ResultConverter resultConverter) Create the advanced settings pane.static doubleerror2Slider(double errorValue, double errorScaleValue) Convert an error value to a slider value.javafx.scene.NodeGet node for GUI change of settings.getName()Get the name of the pane.getParams(SimpleChi2VarParams currParams) Get settings from the pane.voidnotifyChange(int flag, Object data) General function which allows panes to be notified of some change]voidCalled when settings pane is first initialised.voidsetParams(SimpleChi2VarParams simpleChi2VarParams) Called whenever the pane is first shown/open to set pane to show current settings.voidCreates pane allowing the user to change fine scale things such as error limits.static doubleslider2Error(double sliderValue, double errorScaleValue) Convert a slider value to an error value.Methods inherited from class clickTrainDetector.layout.mht.MHTVarSettingsPane
getMhtAlgorithm, setMhtAlgorithmMethods inherited from class PamController.SettingsPane
getAWTWindow, getFXWindow, getHelpPoint, getOwnerWindow, repackContents, setDefaults, setOwnerWindow 
- 
Field Details
- 
simpleChi2VarParams
Reference to the chi2 variable pane the settings pane is associated with - 
slider
protected javafx.scene.control.Slider slider - 
advPane
The advanced settings pane. Holds editable spinners for changing all settings. - 
currentInput
The current input 
 - 
 - 
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:SettingsPaneGet settings from the pane.- Specified by:
 getParamsin classSettingsPane<SimpleChi2VarParams>- Returns:
 - settings class
 
 - 
setParams
Description copied from class:SettingsPaneCalled whenever the pane is first shown/open to set pane to show current settings.- Specified by:
 setParamsin 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:SettingsPaneGet the name of the pane.- Specified by:
 getNamein classSettingsPane<SimpleChi2VarParams>- Returns:
 - name of the pane
 
 - 
getContentNode
public javafx.scene.Node getContentNode()Description copied from class:SettingsPaneGet node for GUI change of settings.- Specified by:
 getContentNodein classSettingsPane<SimpleChi2VarParams>
 - 
paneInitialized
public void paneInitialized()Description copied from class:SettingsPaneCalled 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:
 paneInitializedin classSettingsPane<SimpleChi2VarParams>
 - 
notifyChange
Description copied from class:SettingsPaneGeneral function which allows panes to be notified of some change]- Overrides:
 notifyChangein classSettingsPane<SimpleChi2VarParams>
 
 -