public class ModeFormControl extends FormControl
A Mode selector is presented at the top to determine the actual plotter used. The style config and non-positional coordinate information required is then divided into two parts: those keys which are common to all the modes, and those keys which are specific to the currently selected mode. The common ones share common specifier components so that the values don't change if the mode changes, while the specific ones appear in a mode-specific location (near the mode selector) only for the mode they apply to. From a programmatic point of view, it can be treated just like a normal FormControl.
| Constructor and Description |
|---|
ModeFormControl(Configger baseConfigger,
uk.ac.starlink.ttools.plot2.layer.ModePlotter<?>[] plotters,
uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] subsetKeys,
uk.ac.starlink.ttools.plot2.data.Coord[] excludeCoords)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] |
getConfigKeys()
Returns the keys defining the additional configuration required
by this control.
|
String |
getControlLabel()
Returns a short string to label this control, visible in the stack.
|
JComponent |
getCoordPanel()
Returns the panel into which the user enters additional coordinate
information required for this control, if any.
|
uk.ac.starlink.ttools.plot2.config.ConfigMap |
getExtraConfig()
Returns the additional configuration entered by the user in
this control.
|
GuiCoordContent[] |
getExtraCoordContents()
Returns the data and metadata for the additional coordinates
entered by the user in this control.
|
protected uk.ac.starlink.ttools.plot2.Plotter<?> |
getPlotter()
Returns the Plotter object which generates plot layers from the
information provided by this control
|
void |
setMode(uk.ac.starlink.ttools.plot2.layer.ModePlotter.Mode mode)
Sets the current mode for this control.
|
protected void |
setTable(TopcatModel tcModel)
Performs implementation-specific configuration of this control
for a given TopcatModel.
|
addActionListener, createLayer, getActionForwarder, getControlIcon, getPanel, getStylePanel, removeActionListener, setTable, submitReportspublic ModeFormControl(Configger baseConfigger, uk.ac.starlink.ttools.plot2.layer.ModePlotter<?>[] plotters, uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] subsetKeys, uk.ac.starlink.ttools.plot2.data.Coord[] excludeCoords)
baseConfigger - provides global configuration infoplotters - family of plotters with different modes but
the same form,
for which this control gathers configurationsubsetKeys - config keys which are managed on a per-subset
basis by some other componentexcludeCoords - coordinates that may belong to the plotters but
are taken care of elsewhere, and so should not
be presented in this controlpublic String getControlLabel()
ControlgetControlLabel in interface ControlgetControlLabel in class FormControlpublic GuiCoordContent[] getExtraCoordContents()
FormControlgetExtraCoordContents in class FormControlpublic uk.ac.starlink.ttools.plot2.config.ConfigMap getExtraConfig()
FormControlgetExtraConfig in class FormControlprotected void setTable(TopcatModel tcModel)
FormControlsetTable in class FormControltcModel - new topcat model to installpublic void setMode(uk.ac.starlink.ttools.plot2.layer.ModePlotter.Mode mode)
mode - new modeprotected uk.ac.starlink.ttools.plot2.Plotter<?> getPlotter()
FormControlgetPlotter in class FormControlpublic uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] getConfigKeys()
FormControlgetConfigKeys in class FormControlpublic JComponent getCoordPanel()
FormControlgetCoordPanel in class FormControlCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.