Class AcquisitionPaneFX

java.lang.Object
PamController.SettingsPane<AcquisitionParameters>
Acquisition.layoutFX.AcquisitionPaneFX

public class AcquisitionPaneFX extends SettingsPane<AcquisitionParameters>
Settings pane for the sound acquisition parameters.
Author:
Jamie Macaulay and Doug Gillespie.
  • Constructor Details

  • 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

      public AcquisitionParameters getParams()
    • setParams

      public void setParams(AcquisitionParameters input)
      Description copied from class: SettingsPane
      Called whenever the pane is first shown/open to set pane to show current settings.
      Specified by:
      setParams in class SettingsPane<AcquisitionParameters>
      Parameters:
      input - - current settings class.
    • getName

      public String getName()
      Description copied from class: SettingsPane
      Get the name of the pane.
      Specified by:
      getName in class SettingsPane<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 class SettingsPane<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 class SettingsPane<AcquisitionParameters>
    • getCurrentDaqSystem

      public DaqSystem getCurrentDaqSystem()
      Get the current DAQ system
      Returns:
      the current DAQ system.
    • getParams

      public AcquisitionParameters getParams(AcquisitionParameters currParams)
      Description copied from class: SettingsPane
      Get settings from the pane.
      Specified by:
      getParams in class SettingsPane<AcquisitionParameters>
      Returns:
      settings class
    • getFlipPane

      public FlipPane getFlipPane()
      Get the flip pane.
      Returns:
      the flip pane.
    • getAdvancedPane

      public PamBorderPane getAdvancedPane()
    • getAdvancedLabel

      public javafx.scene.control.TextField getAdvancedLabel()