Class BasicCoordLayerControl
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
- All Implemented Interfaces:
Configger, Control, LayerControl
- Direct Known Subclasses:
HealpixLayerControl, SpectrogramLayerControl
LayerControl for a single plotter with coordinates.
- Since:
- 25 Nov 2013
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionBasicCoordLayerControl(uk.ac.starlink.ttools.plot2.Plotter<?> plotter, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel, PositionCoordPanel coordPanel, ListModel<TopcatModel> tablesModel, Configger baseConfigger, boolean autoPopulate) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionuk.ac.starlink.ttools.plot2.config.ConfigMapReturns a single config map containing all of the config information gathered by this control.Returns a short string to label this control, visible in the stack.getCoordLabel(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.protected PositionCoordPanelReturns the coord panel.uk.ac.starlink.ttools.plot2.LegendEntry[]Returns legend entries associated with this control.uk.ac.starlink.ttools.plot2.Plotter<?>[]Returns a list of the plotters that will be used by this control to create layers.protected SingleZoneLayerReturns the layer produced by this control.Returns the selection widget for choosing which table this control is working with.Returns the topcat model currently selected in the GUI.uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> Returns a specifier that determines which zone of a multi-zone plot this control's layers will be displayed in.voidsetTopcatModel(TopcatModel tcModel) Sets in the GUI the topcat model for which this control is making plots.protected voidtableChanged(TopcatModel tcModel) Called when the TopcatModel for which this control is generating plots is changed.Methods inherited from class SingleZoneLayerControl
getLayers, hasLayers, submitReportsMethods inherited from class ConfigControl
addSpecifierTab, getConfigSpecifiersMethods inherited from class TabberControl
addActionListener, addControlTab, addZoneTab, getActionForwarder, getControlIcon, getPanel, getTabber, removeActionListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Control
addActionListener, getControlIcon, getPanel, removeActionListener
-
Constructor Details
-
BasicCoordLayerControl
public BasicCoordLayerControl(uk.ac.starlink.ttools.plot2.Plotter<?> plotter, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel, PositionCoordPanel coordPanel, ListModel<TopcatModel> tablesModel, Configger baseConfigger, boolean autoPopulate) Constructor.- Parameters:
plotter- plotterzsel- zone id specifier, may be null for single-zone casecoordPanel- panel which displays the plotter's coordinates, and supplies a DataGeomtablesModel- list of available tablesbaseConfigger- provides global configuration infoautoPopulate- if true, when the table is changed an attempt will be made to initialise the coordinate fields with some suitable values
-
-
Method Details
-
getControlLabel
Description copied from interface:ControlReturns a short string to label this control, visible in the stack.- Specified by:
getControlLabelin interfaceControl- Overrides:
getControlLabelin classTabberControl- Returns:
- label
-
getPlotters
public uk.ac.starlink.ttools.plot2.Plotter<?>[] getPlotters()Description copied from interface:LayerControlReturns a list of the plotters that will be used by this control to create layers.- Returns:
- list of active plotters
-
getSingleZoneLayer
Description copied from class:SingleZoneLayerControlReturns the layer produced by this control.- Specified by:
getSingleZoneLayerin classSingleZoneLayerControl- Returns:
- single zone layer, or null if none is active
-
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.- Parameters:
userCoordName- name of one of the user value infos of an input coord for this control- Returns:
- text label associated with user coordinate
-
getLegendEntries
public uk.ac.starlink.ttools.plot2.LegendEntry[] getLegendEntries()Description copied from interface:LayerControlReturns legend entries associated with this control.- Returns:
- legend entries
-
getZoneSpecifier
Description copied from interface:LayerControlReturns a specifier that determines which zone of a multi-zone plot this control's layers will be displayed in. If this control is known to be used in a single-zone context, null should be returned.- Returns:
- zone id specifier, or null
-
getTableSelector
Description copied from interface:LayerControlReturns the selection widget for choosing which table this control is working with. If this control does not use a table, null is returned. The assumption is (currently) that a given control uses a maximum of one table.- Returns:
- table selector, or null
-
getConfig
public uk.ac.starlink.ttools.plot2.config.ConfigMap getConfig()Description copied from class:ConfigControlReturns a single config map containing all of the config information gathered by this control. The returned map is the union of all the configs gathered from the specifiers added by theaddSpecifierTabmethod.- Specified by:
getConfigin interfaceConfigger- Overrides:
getConfigin classConfigControl- Returns:
- all configuration information gathered by this control
-
setTopcatModel
Sets in the GUI the topcat model for which this control is making plots.- Parameters:
tcModel- new topcat model
-
getTopcatModel
Returns the topcat model currently selected in the GUI.- Returns:
- topcat model
-
getCoordPanel
-
tableChanged
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.- Parameters:
tcModel- new topcat model, may be null
-