Package uk.ac.starlink.topcat.plot2
Class SpectrogramLayerControl
java.lang.Object
uk.ac.starlink.topcat.plot2.TabberControl
uk.ac.starlink.topcat.plot2.ConfigControl
uk.ac.starlink.topcat.plot2.SingleZoneLayerControl
uk.ac.starlink.topcat.plot2.BasicCoordLayerControl
uk.ac.starlink.topcat.plot2.SpectrogramLayerControl
- All Implemented Interfaces:
Configger,Control,LayerControl
LayerControl for plotting spectrograms.
- Since:
- 15 Aug 2013
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionSpectrogramLayerControl(uk.ac.starlink.ttools.plot2.layer.SpectrogramPlotter plotter, ListModel<TopcatModel> tablesModel, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel, Configger baseConfigger) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetCoordLabel(String userCoordName) 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.uk.ac.starlink.ttools.plot2.LegendEntry[]It's difficult to know how to represent a spectrogram in a legend, and it's probably not necessary.protected voidtableChanged(TopcatModel tcModel) Called when the TopcatModel for which this control is generating plots is changed.Methods inherited from class uk.ac.starlink.topcat.plot2.BasicCoordLayerControl
getConfig, getControlLabel, getCoordPanel, getPlotters, getSingleZoneLayer, getTableSelector, getTopcatModel, getZoneSpecifier, setTopcatModelMethods inherited from class uk.ac.starlink.topcat.plot2.SingleZoneLayerControl
getLayers, hasLayers, submitReportsMethods inherited from class uk.ac.starlink.topcat.plot2.ConfigControl
addSpecifierTab, getConfigSpecifiersMethods inherited from class uk.ac.starlink.topcat.plot2.TabberControl
addActionListener, addControlTab, addZoneTab, getActionForwarder, getControlIcon, getPanel, getTabber, removeActionListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.ac.starlink.topcat.plot2.Control
addActionListener, getControlIcon, getPanel, removeActionListener
-
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 plottertablesModel- list of available tableszsel- zone id specifier, may be null for single-zone plotsbaseConfigger- 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:
getLegendEntriesin interfaceLayerControl- Overrides:
getLegendEntriesin classBasicCoordLayerControl- Returns:
- legend entries
-
getCoordLabel
Description copied from interface:LayerControlReturns 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:
getCoordLabelin interfaceLayerControl- Overrides:
getCoordLabelin classBasicCoordLayerControl- 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
Description copied from class:BasicCoordLayerControlCalled 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:
tableChangedin classBasicCoordLayerControl- Parameters:
tcModel- new topcat model, may be null
-