Class SpectrogramLayerControl

All Implemented Interfaces:
Configger, Control, LayerControl

public class SpectrogramLayerControl extends BasicCoordLayerControl
LayerControl for plotting spectrograms.
Since:
15 Aug 2013
Author:
Mark Taylor
  • Constructor Details

    • SpectrogramLayerControl

      public SpectrogramLayerControl(uk.ac.starlink.ttools.plot2.layer.SpectrogramPlotter plotter, ListModel<TopcatModel> tablesModel, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel, Configger baseConfigger)
      Constructor.
      Parameters:
      plotter - spectrogram plotter
      tablesModel - list of available tables
      zsel - zone id specifier, may be null for single-zone plots
      baseConfigger - provides global configuration info
  • Method Details

    • getLegendEntries

      public uk.ac.starlink.ttools.plot2.LegendEntry[] getLegendEntries()
      It's difficult to know how to represent a spectrogram in a legend, and it's probably not necessary. The current implementation just returns an empty array.
      Specified by:
      getLegendEntries in interface LayerControl
      Overrides:
      getLegendEntries in class BasicCoordLayerControl
      Returns:
      legend entries
    • getCoordLabel

      public String getCoordLabel(String userCoordName)
      Description copied from interface: LayerControl
      Returns a text label associated with one of the user coords for this control, typically the name of the column or expression supplying the data. Null may be returned if there's no good answer.
      Specified by:
      getCoordLabel in interface LayerControl
      Overrides:
      getCoordLabel in class BasicCoordLayerControl
      Parameters:
      userCoordName - name of one of the user value infos of an input coord for this control
      Returns:
      text label associated with user coordinate
    • tableChanged

      protected void tableChanged(TopcatModel tcModel)
      Description copied from class: BasicCoordLayerControl
      Called when the TopcatModel for which this control is generating plots is changed. Usually this will be because the user has selected a new table from the table selector.
      Overrides:
      tableChanged in class BasicCoordLayerControl
      Parameters:
      tcModel - new topcat model, may be null