public class SubsetConfigManager extends Object
| Constructor and Description |
|---|
SubsetConfigManager(NextSupplier nextSupplier,
uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] otherKeys)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener listener)
Adds a listener to be notified whenever the state of one of this
manager's configuration components changes.
|
Configger |
getConfigger(RowSubset.Key rsKey)
Lazily constructs and returns a SubsetConfigger for a given subset.
|
JComponent |
getConfiggerComponent(RowSubset.Key rsKey)
Returns the GUI configuration component for a given row subset.
|
uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] |
getConfigKeys()
Returns the config keys managed by this manager.
|
boolean |
hasConfigger(RowSubset.Key rsKey)
Indicates whether this manager currently has an initialised
configuration object for the given subset.
|
void |
removeActionListener(ActionListener listener)
Removes a previously added listener.
|
void |
setConfig(RowSubset.Key rsKey,
uk.ac.starlink.ttools.plot2.config.ConfigMap config)
Adjusts the configuration for a given row subset managed by this object.
|
public SubsetConfigManager(NextSupplier nextSupplier, uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] otherKeys)
nextSupplier - manages dispensing different objects of the
same typeotherKeys - keys for config items not handled by the
nextSupplier that should be handled by this
managers configgerspublic uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] getConfigKeys()
public boolean hasConfigger(RowSubset.Key rsKey)
getConfigger would
construct and initialise such an object.rsKey - row subset identifierpublic Configger getConfigger(RowSubset.Key rsKey)
rsKey - identifier of subset for which the configger is requiredpublic void setConfig(RowSubset.Key rsKey, uk.ac.starlink.ttools.plot2.config.ConfigMap config)
rsKey - identifier of subset whose configuration characteristcics
are to be changedconfig - configuration options to be set; any irrelevant
entries are ignoredpublic JComponent getConfiggerComponent(RowSubset.Key rsKey)
rsKey - row subset identifierpublic void addActionListener(ActionListener listener)
listener - listener to addpublic void removeActionListener(ActionListener listener)
listener - to removeCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.