Class BeamOGramPlotInfo

All Implemented Interfaces:
Plot2DColours

public class BeamOGramPlotInfo extends Scrolling2DPlotInfo
  • Constructor Details

  • Method Details

    • createTDScaleInfo

      public TDScaleInfo createTDScaleInfo(Scrolling2DPlotInfo scrolingPlotinfo, 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.
    • makeScrolling2DPlotData

      public Scrolling2DPlotDataFX makeScrolling2DPlotData(int iChannel)
      Description copied from class: Scrolling2DPlotInfo
      Put this into a function so that if a display needs to extend the Spectrogram2DPlotdata class in any way, it can easily do so.
      Overrides:
      makeScrolling2DPlotData in class Scrolling2DPlotInfo
      Parameters:
      iChannel - channel number
      Returns:
      plot information.
    • 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.
    • drawData

      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 Scrolling2DPlotInfo
      Parameters:
      plotNumber - plot number
      g - graphics
    • getDataValue

      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.
      Overrides:
      getDataValue in class Scrolling2DPlotInfo
      Returns:
      data value or null if this data point should not be plotted.
    • getSymbolChooser

      public TDSymbolChooserFX getSymbolChooser()
      Overrides:
      getSymbolChooser in class Scrolling2DPlotInfo
      Returns:
      a class containing functions to chose a symbol to plot.
    • 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.
    • 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.