public class SubsetConfigManager
extends java.lang.Object
Constructor | Description |
---|---|
SubsetConfigManager(NextSupplier nextSupplier,
uk.ac.starlink.ttools.plot2.config.ConfigKey[] otherKeys) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addActionListener(java.awt.event.ActionListener listener) |
Adds a listener to be notified whenever the state of one of this
manager's configuration components changes.
|
Configger |
getConfigger(RowSubset subset) |
Lazily constructs and returns a SubsetConfigger for a given subset.
|
javax.swing.JComponent |
getConfiggerComponent(RowSubset subset) |
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 subset) |
Indicates whether this manager currently has an initialised
configuration object for the given subset.
|
void |
removeActionListener(java.awt.event.ActionListener listener) |
Removes a previously added listener.
|
void |
setConfig(RowSubset subset,
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 subset)
getConfigger
would
construct and initialise such an object.subset
- row subsetpublic Configger getConfigger(RowSubset subset)
subset
- subset for which the configger is requiredpublic void setConfig(RowSubset subset, uk.ac.starlink.ttools.plot2.config.ConfigMap config)
subset
- subset whose configuration characteristcics
are to be changedconfig
- configuration options to be set; any irrelevant
entries are ignoredpublic javax.swing.JComponent getConfiggerComponent(RowSubset subset)
subset
- row subsetpublic void addActionListener(java.awt.event.ActionListener listener)
listener
- listener to addpublic void removeActionListener(java.awt.event.ActionListener listener)
listener
- to removeCopyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.