Package uk.ac.starlink.topcat.plot2
Class OptionalConfigSpecifier
java.lang.Object
uk.ac.starlink.ttools.plot2.config.SpecifierPanel<uk.ac.starlink.ttools.plot2.config.ConfigMap>
uk.ac.starlink.topcat.plot2.ConfigSpecifier
uk.ac.starlink.topcat.plot2.OptionalConfigSpecifier
- All Implemented Interfaces:
uk.ac.starlink.ttools.plot2.config.Specifier<uk.ac.starlink.ttools.plot2.config.ConfigMap>
ConfigSpecifier subclass that adds checkboxes for some of its
component specifiers, indicating whether those specifiers should
be used for the result or not. Where they are not used, the relevant
GUI controls are disabled.
This is quite like AutoConfigSpecifier
, but the override value is
not reflected in the GUI. Perhaps the two classes should be combined?
- Since:
- 18 Mar 2013
- Author:
- Mark Taylor
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.starlink.topcat.plot2.ConfigSpecifier
ConfigSpecifier.ComponentGui
-
Constructor Summary
ConstructorsConstructorDescriptionOptionalConfigSpecifier
(uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] allKeys, uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] optKeys, String optionText) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureFrom
(OptionalConfigSpecifier template) Configures this specifier with the current state of a supplied template.uk.ac.starlink.ttools.plot2.config.ConfigMap
Methods inherited from class uk.ac.starlink.topcat.plot2.ConfigSpecifier
checkConfig, checkRangeSense, createComponent, getConfigKeys, getSpecifier, reportError, setSpecifiedValue, submitReport
Methods inherited from class uk.ac.starlink.ttools.plot2.config.SpecifierPanel
addActionListener, fireAction, getActionForwarder, getChangeForwarder, getComponent, isXFill, removeActionListener
-
Constructor Details
-
OptionalConfigSpecifier
public OptionalConfigSpecifier(uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] allKeys, uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] optKeys, String optionText) Constructor.- Parameters:
allKeys
- all of the keysoptKeys
- subset of allKeys which should be annotated with activation checkboxes; any entries not contained in allKeys are ignoredoptionText
- text to annotate the checkboxes
-
-
Method Details
-
getSpecifiedValue
public uk.ac.starlink.ttools.plot2.config.ConfigMap getSpecifiedValue()- Specified by:
getSpecifiedValue
in interfaceuk.ac.starlink.ttools.plot2.config.Specifier<uk.ac.starlink.ttools.plot2.config.ConfigMap>
- Overrides:
getSpecifiedValue
in classConfigSpecifier
-
configureFrom
Configures this specifier with the current state of a supplied template.- Parameters:
template
- specifier supplying required configuration
-