Configger
, Control
, LayerControl
HealpixLayerControl
, SpectrogramLayerControl
public class BasicCoordLayerControl extends ConfigControl implements LayerControl
Constructor | Description |
---|---|
BasicCoordLayerControl(uk.ac.starlink.ttools.plot2.Plotter<?> plotter,
uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel,
PositionCoordPanel coordPanel,
Configger baseConfigger,
boolean autoPopulate) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
uk.ac.starlink.ttools.plot2.config.ConfigMap |
getConfig() |
Returns a single config map containing all of the config
information gathered by this control.
|
java.lang.String |
getControlLabel() |
Returns a short string to label this control, visible in the stack.
|
java.lang.String |
getCoordLabel(java.lang.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.
|
TopcatLayer[] |
getLayers() |
Returns the layers contributed by this control.
|
uk.ac.starlink.ttools.plot2.LegendEntry[] |
getLegendEntries() |
Returns legend entries associated with this control.
|
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.
|
void |
submitReports(java.util.Map<LayerId,uk.ac.starlink.ttools.plot2.ReportMap> reports) |
Accepts report information generated by plotting layers.
|
protected void |
tableChanged(TopcatModel tcModel) |
Called when the TopcatModel for which this control is generating plots
is changed.
|
addSpecifierTab, getConfigSpecifiers
addActionListener, getControlIcon, getPanel, removeActionListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addActionListener, addControlTab, addZoneTab, getActionForwarder, getControlIcon, getPanel, getTabber, removeActionListener
public BasicCoordLayerControl(uk.ac.starlink.ttools.plot2.Plotter<?> plotter, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel, PositionCoordPanel coordPanel, 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 DataGeombaseConfigger
- 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 java.lang.String getControlLabel()
Control
getControlLabel
in interface Control
getControlLabel
in class TabberControl
public TopcatLayer[] getLayers()
LayerControl
getLayers
in interface LayerControl
public java.lang.String getCoordLabel(java.lang.String userCoordName)
LayerControl
getCoordLabel
in interface 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
getLegendEntries
in interface LayerControl
public uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> getZoneSpecifier()
LayerControl
getZoneSpecifier
in interface LayerControl
public uk.ac.starlink.ttools.plot2.config.ConfigMap getConfig()
ConfigControl
addSpecifierTab
method.getConfig
in interface Configger
getConfig
in class ConfigControl
public void submitReports(java.util.Map<LayerId,uk.ac.starlink.ttools.plot2.ReportMap> reports)
LayerControl
submitReports
in interface LayerControl
reports
- per-layer plot reports for layers generated on
behalf of this and possibly other controlspublic void setTopcatModel(TopcatModel tcModel)
tcModel
- new topcat modelprotected PositionCoordPanel getCoordPanel()
protected void tableChanged(TopcatModel tcModel)
tcModel
- new topcat model, may be nullCopyright ? 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.