Class ConfigControl
java.lang.Object
uk.ac.starlink.topcat.plot2.TabberControl
uk.ac.starlink.topcat.plot2.ConfigControl
- Direct Known Subclasses:
FrameControl, FunctionLayerControl, ShaderControl, SingleZoneLayerControl
Control implementation which uses tabs and contains one or more
ConfigSpecifiers as the user interaction component.
There's nothing to stop you adding non-ConfigSpecifier tabs too.
- Since:
- 13 Mar 2013
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSpecifierTab(String name, uk.ac.starlink.ttools.plot2.config.Specifier<uk.ac.starlink.ttools.plot2.config.ConfigMap> specifier) Adds a config specifier as one of the tabs.uk.ac.starlink.ttools.plot2.config.ConfigMapReturns a single config map containing all of the config information gathered by this control.List<uk.ac.starlink.ttools.plot2.config.Specifier<uk.ac.starlink.ttools.plot2.config.ConfigMap>> Returns a list of the config specifiers explicitly added to this control.Methods inherited from class TabberControl
addActionListener, addControlTab, addZoneTab, getActionForwarder, getControlIcon, getControlLabel, getPanel, getTabber, removeActionListener
-
Constructor Details
-
ConfigControl
-
-
Method Details
-
addSpecifierTab
protected void addSpecifierTab(String name, uk.ac.starlink.ttools.plot2.config.Specifier<uk.ac.starlink.ttools.plot2.config.ConfigMap> specifier) Adds a config specifier as one of the tabs.- Parameters:
name- tab labelspecifier- config specifier
-
getConfig
public uk.ac.starlink.ttools.plot2.config.ConfigMap getConfig()Returns a single config map containing all of the config information gathered by this control. The returned map is the union of all the configs gathered from the specifiers added by theaddSpecifierTabmethod. -
getConfigSpecifiers
public List<uk.ac.starlink.ttools.plot2.config.Specifier<uk.ac.starlink.ttools.plot2.config.ConfigMap>> getConfigSpecifiers()Returns a list of the config specifiers explicitly added to this control.- Returns:
- list of specifiers
-