Class RawSoundDataInfo

java.lang.Object
dataPlotsFX.data.TDDataInfoFX
dataPlotsFX.rawDataPlotFX.RawSoundDataInfo

public class RawSoundDataInfo extends TDDataInfoFX
  • Constructor Details Link icon

  • Method Details Link icon

    • drawData Link icon

      public void drawData(int plotNumber, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector)
      Description copied from class: TDDataInfoFX
      Paint data into the graphics window.
      Overrides:
      drawData in class TDDataInfoFX
      Parameters:
      plotNumber - plot number
      g - graphics
    • getScaleInfo Link icon

      public TDScaleInfo getScaleInfo(boolean autoScale)
      Description copied from class: TDDataInfoFX
      Get scale information based on the min max values of units in the data block or fixed scale information
      Overrides:
      getScaleInfo in class TDDataInfoFX
      Parameters:
      autoScale - . Create a scale information which is based on min/max value of data units in data block. False to use fixed scale information.
      Returns:
      Information about the scales of the data.
    • getDataValue Link icon

      public Double getDataValue(PamDataUnit pamDataUnit)
      Description copied from class: TDDataInfoFX
      Gets a value for a specific data unit which should be in the same units as the scale information. This will then be converted into a plot position by the TDGraph.
      Specified by:
      getDataValue in class TDDataInfoFX
      Parameters:
      pamDataUnit -
      Returns:
      data value or null if this data point should not be plotted.
    • getSymbolChooser Link icon

      public TDSymbolChooserFX getSymbolChooser()
      Specified by:
      getSymbolChooser in class TDDataInfoFX
      Returns:
      a class containing functions to chose a symbol to plot.
    • getSampleRate Link icon

      protected float getSampleRate()
      Get the sample rate of the raw sound data.
      Returns:
      sample rate of the raw sound data in S/s.
    • getBinsPerPixel Link icon

      protected double getBinsPerPixel()
      Get the number of bins per pixel. This is calculated from the width of the tdGraph in pixels, the time the display represents and the sample rate of raw sound data.
      Returns:
      the number of bins per pixel.
    • timeScrollRangeChanged Link icon

      public void timeScrollRangeChanged(double minimumMillis, double maximumMillis)
      (non-Javadoc)
      Overrides:
      timeScrollRangeChanged in class TDDataInfoFX
      Parameters:
      minimumMillis - new minimum in millis
      maximumMillis - new maximum in millis.
      See Also:
    • timeRangeSpinnerChange Link icon

      public void timeRangeSpinnerChange(double oldValue, double newValue)
      Description copied from class: TDDataInfoFX
      Called when the time range spinner on the main display panel changes.
      Overrides:
      timeRangeSpinnerChange in class TDDataInfoFX
      Parameters:
      oldValue - old value (seconds)
      newValue - new value (seconds)
    • timeScrollValueChanged Link icon

      public void timeScrollValueChanged(double valueMillis)
      (non-Javadoc)
      Overrides:
      timeScrollValueChanged in class TDDataInfoFX
      Parameters:
      valueMillis - new scroll value in millis
      See Also: