Class FFTPlotInfo

All Implemented Interfaces:
Plot2DColours

public class FFTPlotInfo extends Scrolling2DPlotInfo
Plots spectrogram data.
Author:
Jamie Macaulay
  • Constructor Details

  • Method Details

    • createPlotParams

      public PlotParams2D createPlotParams()
      Description copied from class: Scrolling2DPlotInfo
      Create plot params. These will generally be extensions o f PlotParams2D to include additional information required by specific plot types.
      Specified by:
      createPlotParams in class Scrolling2DPlotInfo
      Returns:
      params controlling the plot.
    • createTDScaleInfo

      public Scrolling2DScaleInfo createTDScaleInfo(Scrolling2DPlotInfo scrollingPlotInfo, double minVal, double maxVal)
      Description copied from class: Scrolling2DPlotInfo
      Create a bespoke scale info object reflecting the right type of axis information
      Specified by:
      createTDScaleInfo in class Scrolling2DPlotInfo
      Returns:
      Scale informatoin.
    • getGraphSettingsPane

      public TDSettingsPane getGraphSettingsPane()
      Description copied from class: TDDataInfoFX
      Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.
      Overrides:
      getGraphSettingsPane in class TDDataInfoFX
      Returns:
      sliding dialog component.
    • bindPlotParams

      public void bindPlotParams()
      Description copied from class: Scrolling2DPlotInfo
      Set up binding between display and control panels. Amplitude params / scales are handled in the base class, but here will need to do the frequency scale for spectrograms and whatever required for other display types.
      Specified by:
      bindPlotParams in class Scrolling2DPlotInfo
    • setStoredSettings

      public boolean setStoredSettings(Serializable storedSettings)
      Description copied from class: Scrolling2DPlotInfo
      Set settings which have been read back from storage (the psf file). Assume these are of the right type and cast into whatever is needed !
      Overrides:
      setStoredSettings in class Scrolling2DPlotInfo
      Returns:
      true if all OK.
    • getStoredSettings

      public Serializable getStoredSettings()
      Description copied from class: TDDataInfoFX
      Get an object that will be packed up with the serialised settings when information about a plot get's stored.
      The Object MUST implement serializable and ideally also cloneable or it will go belly up !
      This only gets called when settings are to be saved so there is no need to keep parameters this returns up to date except right at settings save time (when this is called)
      Overrides:
      getStoredSettings in class Scrolling2DPlotInfo
      Returns:
      serializable object to save.
    • setSampleRate

      public void setSampleRate(float sampleRate, boolean notify)
      Overrides:
      setSampleRate in class Scrolling2DPlotInfo
    • calcFrequencyRangeDisplay

      public void calcFrequencyRangeDisplay()
      Checks the frequency range range to be displayed. This is a direct copy of similar fun in the old spec display
    • finalConfigurationTasks

      public void finalConfigurationTasks()
      Description copied from class: Scrolling2DPlotInfo
      final configuration tasks called from Platform->runLater()
      Overrides:
      finalConfigurationTasks in class Scrolling2DPlotInfo
    • notifyChange

      public void notifyChange(int changeType)
      Notify of changes from PamController.
      Overrides:
      notifyChange in class TDDataInfoFX
      Parameters:
      changeType - - the chnage type.
    • getSpectrogramControlPane

      public TDSpectrogramControlPane getSpectrogramControlPane()
      Returns:
      the spectrogramControlPane
    • getMasterClockOverride

      public long getMasterClockOverride()
      Description copied from class: TDDataInfoFX
      The TDDisplayFX scroller is based on a master clock update from PAMGuard. This can be irritating because the master clock will always be slighter greater than the the processed data leaving a gap at the scroller end. Some data infos with continuous data can act as a better clock (for example the spectrgram or raw data). Data which is discrete like the click detector cannot because they don't have contious data.
      Overrides:
      getMasterClockOverride in class TDDataInfoFX