Class RawClipDataInfo

Direct Known Subclasses:
ClipPlotInfoFX, DLDetectionPlotInfoFX

public class RawClipDataInfo extends GenericDataPlotInfo
Raw clip data info.
Author:
Jamie Macaulay
  • Constructor Details

  • Method Details

    • getRawClipParams

      public RawClipParams getRawClipParams()
      Get the raw clip parameters.
      Returns:
      the raw clip parameters.
    • drawDataUnit

      public javafx.scene.shape.Polygon drawDataUnit(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type)
      Description copied from class: TDDataInfoFX
      Draw a data unit.
      Overrides:
      drawDataUnit in class GenericDataPlotInfo
      Parameters:
      pamDataUnit - data unit to draw
      g - graphicsContext handle to draw on
      type - flag for which type of symbol to draw. e.g normal or highlighted.
      Returns:
      polygon of area drawn on.
    • getSpectrogram

      public double[][] getSpectrogram(PamDataUnit pamDataUnit, int chanClick)
      Get the spectrogram for a raw clip.
      Parameters:
      pamDataUnit - - the pam data unit. Should implement RawDataHolder.
      chanClick - - the channel click
      Returns:
      the double
    • getFFTplotManager

      public RawClipFFTPlotManager getFFTplotManager()
      The raw FFT plot manager. Handles plotting clip spectrograms
      Returns:
    • getRawWavePlotManager

      public RawClipWavePlotManager getRawWavePlotManager()
      The raw FFT plot manager. Handles plotting clip spectrograms
      Returns:
    • notifyChange

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

      public RawClipSettingsPane getClipSettingsPane()
    • 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 GenericDataPlotInfo
      Returns:
      sliding dialog component.
    • lastUnitDrawn

      public void lastUnitDrawn(javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int plotnumber)
      Description copied from class: TDDataInfoFX
      Indicates that the last data unit has been drawn. This can be useful in TDDataInfo's which have more bespoke drawing mechanisms.
      Overrides:
      lastUnitDrawn in class TDDataInfoFX
      Parameters:
      plotnumber - - plot number i.e. which sub plot the data should be drawn on.
    • getRawScaleInfo

      public TDScaleInfo getRawScaleInfo()
      Get the scale info for plotting raw waveforms.
      Returns:
      the scale info for raw waveforms.
    • getScaleInfos

      public ArrayList<TDScaleInfo> getScaleInfos()
      (non-Javadoc)
      Overrides:
      getScaleInfos in class GenericDataPlotInfo
      Returns:
      a list of TDScaleInfos.
      See Also:
    • getScaleInfo

      public TDScaleInfo getScaleInfo()
      Overrides:
      getScaleInfo in class TDDataInfoFX
      Returns:
      the fixedScaleInformation
    • getSymbolChooser

      public RawClipSymbolChooser getSymbolChooser()
      Get click symbol chooser.
      Overrides:
      getSymbolChooser in class GenericDataPlotInfo
      Returns:
      the click symbol chooser.
    • settingsUpdate

      public void settingsUpdate()
    • 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 TDDataInfoFX
      Returns:
      serializable object to save.
    • setStoredSettings

      public boolean setStoredSettings(Serializable storedSettings)
      Description copied from class: TDDataInfoFX
      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 TDDataInfoFX
      Returns:
      true if all OK.