Control
, LayerControl
MultiFormLayerControl
, SingleFormLayerControl
public abstract class FormLayerControl extends TabberControl implements LayerControl
Modifier | Constructor | Description |
---|---|---|
protected |
FormLayerControl(PositionCoordPanel posCoordPanel,
TypedListModel<TopcatModel> tablesModel,
uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel,
boolean autoPopulate,
NextSupplier nextSupplier,
TopcatListener tcListener,
javax.swing.Icon controlIcon) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
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 abstract FormControl[] |
getFormControls() |
Returns a list of all the form controls, active or not, currently
managd by this layer control.
|
TopcatLayer[] |
getLayers() |
Returns the layers contributed by this control.
|
uk.ac.starlink.ttools.plot2.LegendEntry[] |
getLegendEntries() |
Returns legend entries associated with this control.
|
PositionCoordPanel |
getPositionCoordPanel() |
Returns the panel in which positional coordinates are entered.
|
SubsetConfigManager |
getSubsetManager() |
Returns this control's per-subset configuration manager.
|
SubsetStack |
getSubsetStack() |
Returns this control's selectable stack of subsets.
|
TablesListComboBox |
getTableSelector() |
Returns the selection widget for choosing which table this control
is working with.
|
TopcatModel |
getTopcatModel() |
Returns the table for which this control is currently making plots.
|
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.
|
protected abstract boolean |
isControlActive(FormControl fc) |
Indicates whether a given form control is contributing the the plot
on behalf of this layer control.
|
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.
|
addActionListener, getControlIcon, getPanel, removeActionListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addActionListener, addControlTab, addZoneTab, getActionForwarder, getControlIcon, getPanel, getTabber, removeActionListener
protected FormLayerControl(PositionCoordPanel posCoordPanel, TypedListModel<TopcatModel> tablesModel, uk.ac.starlink.ttools.plot2.config.Specifier<ZoneId> zsel, boolean autoPopulate, NextSupplier nextSupplier, TopcatListener tcListener, javax.swing.Icon controlIcon)
posCoordPanel
- panel for entering table and basic positional
coordinatestablesModel
- list of available tableszsel
- zone id specifier, may be null for single-zone plotsautoPopulate
- if true, when the table is changed an attempt
will be made to initialise the coordinate fields
with some suitable valuesnextSupplier
- manages global dispensing for some style optionstcListener
- listener for TopcatEvents; this manager will arrange
for it to listen to whatever is the currently
selected TopcatModelcontrolIcon
- icon for control stackpublic java.lang.String getControlLabel()
Control
getControlLabel
in interface Control
getControlLabel
in class TabberControl
public PositionCoordPanel getPositionCoordPanel()
public SubsetConfigManager getSubsetManager()
public SubsetStack getSubsetStack()
protected abstract FormControl[] getFormControls()
protected abstract boolean isControlActive(FormControl fc)
fc
- form control managed by this layer controlpublic TopcatLayer[] getLayers()
LayerControl
getLayers
in interface LayerControl
public 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 TablesListComboBox getTableSelector()
LayerControl
getTableSelector
in interface LayerControl
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 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 void setTopcatModel(TopcatModel tcModel)
tcModel
- new topcat modelpublic TopcatModel getTopcatModel()
Copyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.