Class DLSettingsPane
The settings pane.
- Author:
- Jamie Macaulay
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.layout.Pane
Get node for GUI change of settings.Get the DLControl associated with the pane.Get the segment hop spinner.getName()
Get the name of the pane.getParams
(RawDLParams currParams) Get settings from the pane.Get the segment length spinner.Get the data block currently selected in the pane.void
Called when settings pane is first initialised.void
setHopLength
(Double hopLength) Convenience class to set the hop length in samples from millisecondsvoid
setParams
(RawDLParams currParams) Called whenever the pane is first shown/open to set pane to show current settings.void
setSegmentLength
(Double defaultSegmentLen) Convenience class to set the segment length in samples from millisecondsvoid
Creates pane allowing the user to change fine scale things such as error limits.void
showWarning
(ArrayList<PamWarning> dlWarnings) Show a warning dialog.void
showWarning
(DLStatus dlWarning) Show a warning dialog for the statusvoid
showWarning
(PamWarning dlWarning) Show a warning dialog.static PamWarning
statusToWarnings
(DLStatus dlStatus) Methods inherited from class PamController.SettingsPane
getAWTWindow, getFXWindow, getHelpPoint, getOwnerWindow, notifyChange, repackContents, setDefaults, setOwnerWindow
-
Field Details
-
MAX_WIDTH
public static double MAX_WIDTH
-
-
Constructor Details
-
DLSettingsPane
-
-
Method Details
-
showAdvPane
public void showAdvPane()Creates pane allowing the user to change fine scale things such as error limits. -
getSegmentLenSpinner
Get the segment length spinner.- Returns:
- the segment spinner.
-
getHopLenSpinner
Get the segment hop spinner.- Returns:
- the segment spinner.
-
getParams
Description copied from class:SettingsPane
Get settings from the pane.- Specified by:
getParams
in classSettingsPane<RawDLParams>
- Returns:
- settings class
-
statusToWarnings
-
showWarning
Show a warning dialog for the status- Parameters:
the
- status to show
-
showWarning
Show a warning dialog.- Parameters:
the
- warning to show.
-
showWarning
Show a warning dialog.- Parameters:
dlWarnings
- - list of warnings - the most important will be shown.
-
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<RawDLParams>
- Parameters:
currParams
- - current settings class.
-
getName
Description copied from class:SettingsPane
Get the name of the pane.- Specified by:
getName
in classSettingsPane<RawDLParams>
- Returns:
- name of the pane
-
getContentNode
public javafx.scene.layout.Pane getContentNode()Description copied from class:SettingsPane
Get node for GUI change of settings.- Specified by:
getContentNode
in classSettingsPane<RawDLParams>
-
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<RawDLParams>
-
getSelectedParentDataBlock
Get the data block currently selected in the pane.- Returns:
- the data block currently selected in the pane.
-
getDLControl
Get the DLControl associated with the pane.- Returns:
- a reference to the DLControl.
-
setSegmentLength
Convenience class to set the segment length in samples from milliseconds- Parameters:
defaultSegmentLen
- - the segment length in milliseconds.
-
setHopLength
Convenience class to set the hop length in samples from milliseconds- Parameters:
defaultSegmentLen
- - the segment length in milliseconds.
-