Package Acquisition.layoutFX
Class AcquisitionPaneFX
Settings pane for the sound acquisition parameters.
- Author:
- Jamie Macaulay and Doug Gillespie.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.layout.Pane
Create pane which shows current sample rate, the total number of channels and a software to hardware channel mapping pane.javafx.scene.control.TextField
javafx.scene.Node
Get node for GUI change of settings.Get the current DAQ systemGet the flip pane.getName()
Get the name of the pane.getParams
(AcquisitionParameters currParams) Get settings from the pane.void
Called when settings pane is first initialised.void
setChannels
(int nChannels) Called by the specific DaqSystem to set the number of channels when it is set by the DaqSystem (for instance FileInputSystem will set it to the number of channels in the current file.void
setParams
(AcquisitionParameters input) Called whenever the pane is first shown/open to set pane to show current settings.void
setSampleRate
(float sampleRate) Called by the specific DaqSystem to set sample rate when it is set by the DaqSystem (for instance FileInputSystem will set sample rate to the sample rate of data in the current file.void
setVPeak2Peak
(double vPeak2Peak) Called by the specific DaqSystem to set the peak to peak voltage range.Methods inherited from class PamController.SettingsPane
getAWTWindow, getFXWindow, getHelpPoint, getOwnerWindow, notifyChange, repackContents, setDefaults, setOwnerWindow
-
Constructor Details
-
AcquisitionPaneFX
-
-
Method Details
-
setSampleRate
public void setSampleRate(float sampleRate) Called by the specific DaqSystem to set sample rate when it is set by the DaqSystem (for instance FileInputSystem will set sample rate to the sample rate of data in the current file.- Parameters:
sampleRate
- Current sample rate
-
setChannels
public void setChannels(int nChannels) Called by the specific DaqSystem to set the number of channels when it is set by the DaqSystem (for instance FileInputSystem will set it to the number of channels in the current file.- Parameters:
nChannels
- Number of channels
-
setVPeak2Peak
public void setVPeak2Peak(double vPeak2Peak) Called by the specific DaqSystem to set the peak to peak voltage range. This is used for calculating absolute SPL's in various detectors the DaqSystem- Parameters:
vPeak2Peak
- Peak to Peak input voltage
-
createSamplingPane
public javafx.scene.layout.Pane createSamplingPane()Create pane which shows current sample rate, the total number of channels and a software to hardware channel mapping pane.- Returns:
- sample rate and current channels
-
getParams
-
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<AcquisitionParameters>
- Parameters:
input
- - current settings class.
-
getName
Description copied from class:SettingsPane
Get the name of the pane.- Specified by:
getName
in classSettingsPane<AcquisitionParameters>
- 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<AcquisitionParameters>
-
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<AcquisitionParameters>
-
getCurrentDaqSystem
Get the current DAQ system- Returns:
- the current DAQ system.
-
getParams
Description copied from class:SettingsPane
Get settings from the pane.- Specified by:
getParams
in classSettingsPane<AcquisitionParameters>
- Returns:
- settings class
-
getFlipPane
Get the flip pane.- Returns:
- the flip pane.
-
getAdvancedPane
-
getAdvancedLabel
public javafx.scene.control.TextField getAdvancedLabel()
-