public class BasicCoordLayerControl extends SingleZoneLayerControl
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
uk.ac.starlink.ttools.plot2.config.ConfigMap |
getConfig()
Returns a single config map containing all of the config
information gathered by this control.
|
String |
getControlLabel()
Returns a short string to label this control, visible in the stack.
|
String |
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 PositionCoordPanel |
getCoordPanel()
Returns the coord panel.
|
uk.ac.starlink.ttools.plot2.LegendEntry[] |
getLegendEntries()
Returns legend entries associated with this control.
|
uk.ac.starlink.ttools.plot2.Plotter<?>[] |
getPlotters()
Returns a list of the plotters that will be used by this control
to create layers.
|
protected SingleZoneLayer |
getSingleZoneLayer()
Returns the layer produced by this control.
|
TablesListComboBox |
getTableSelector()
Returns the selection widget for choosing which table this control
is working with.
|
TopcatModel |
getTopcatModel()
Returns the topcat model currently selected in the GUI.
|
uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> |
getZoneSpecifier()
Returns a specifier that determines which zone of a multi-zone plot
this control's layers will be displayed in.
|
void |
setTopcatModel(TopcatModel tcModel)
Sets in the GUI the topcat model for which this control
is making plots.
|
protected void |
tableChanged(TopcatModel tcModel)
Called when the TopcatModel for which this control is generating plots
is changed.
|
getLayers, hasLayers, submitReports
addSpecifierTab, getConfigSpecifiers
addActionListener, addControlTab, addZoneTab, getActionForwarder, getControlIcon, getPanel, getTabber, removeActionListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addActionListener, getControlIcon, getPanel, removeActionListener
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)
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 valuespublic String getControlLabel()
Control
getControlLabel
in interface Control
getControlLabel
in class TabberControl
public uk.ac.starlink.ttools.plot2.Plotter<?>[] getPlotters()
LayerControl
protected SingleZoneLayer getSingleZoneLayer()
SingleZoneLayerControl
getSingleZoneLayer
in class SingleZoneLayerControl
public String getCoordLabel(String userCoordName)
LayerControl
userCoordName
- name of one of the user value infos of an
input coord for this controlpublic uk.ac.starlink.ttools.plot2.LegendEntry[] getLegendEntries()
LayerControl
public uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> getZoneSpecifier()
LayerControl
public TablesListComboBox getTableSelector()
LayerControl
public uk.ac.starlink.ttools.plot2.config.ConfigMap getConfig()
ConfigControl
addSpecifierTab
method.getConfig
in interface Configger
getConfig
in class ConfigControl
public void setTopcatModel(TopcatModel tcModel)
tcModel
- new topcat modelpublic TopcatModel getTopcatModel()
protected PositionCoordPanel getCoordPanel()
protected void tableChanged(TopcatModel tcModel)
tcModel
- new topcat model, may be nullCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.