public class FunctionLayerControl extends ConfigControl implements LayerControl
Constructor and Description |
---|
FunctionLayerControl(uk.ac.starlink.ttools.plot2.layer.FunctionPlotter plotter,
uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
TopcatLayer[] |
getLayers(uk.ac.starlink.ttools.plot2.Ganger<?,?> ganger)
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.Plotter<?>[] |
getPlotters()
Returns a list of the plotters that will be used by this control
to create layers.
|
TablesListComboBox |
getTableSelector()
Returns the selection widget for choosing which table this control
is working with.
|
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.
|
boolean |
hasLayers()
Indicates whether this control will yield any layers in its
current state.
|
void |
submitReports(Map<LayerId,uk.ac.starlink.ttools.plot2.ReportMap> reports,
uk.ac.starlink.ttools.plot2.Ganger<?,?> ganger)
Accepts report information generated by plotting layers.
|
addSpecifierTab, getConfig, getConfigSpecifiers
addActionListener, addControlTab, addZoneTab, getActionForwarder, getControlIcon, getControlLabel, getPanel, getTabber, removeActionListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addActionListener, getControlIcon, getControlLabel, getPanel, removeActionListener
public FunctionLayerControl(uk.ac.starlink.ttools.plot2.layer.FunctionPlotter plotter, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel)
plotter
- function plotterzsel
- zone id specifier, may be null for single-zone plotspublic uk.ac.starlink.ttools.plot2.Plotter<?>[] getPlotters()
LayerControl
getPlotters
in interface LayerControl
public boolean hasLayers()
LayerControl
getLayers
will return a non-empty array.
False positives are best avoided, but permitted.hasLayers
in interface LayerControl
public TopcatLayer[] getLayers(uk.ac.starlink.ttools.plot2.Ganger<?,?> ganger)
LayerControl
getLayers
in interface LayerControl
ganger
- ganger within which layers will be usedpublic uk.ac.starlink.ttools.plot2.LegendEntry[] getLegendEntries()
LayerControl
getLegendEntries
in interface LayerControl
public void submitReports(Map<LayerId,uk.ac.starlink.ttools.plot2.ReportMap> reports, uk.ac.starlink.ttools.plot2.Ganger<?,?> ganger)
LayerControl
submitReports
in interface LayerControl
reports
- per-layer plot reports for layers generated on
behalf of this and possibly other controlsganger
- ganger within which layers will be usedpublic uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> getZoneSpecifier()
LayerControl
getZoneSpecifier
in interface LayerControl
public TablesListComboBox getTableSelector()
LayerControl
getTableSelector
in interface LayerControl
public String getCoordLabel(String userCoordName)
LayerControl
getCoordLabel
in interface LayerControl
userCoordName
- name of one of the user value infos of an
input coord for this controlCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.