public class SpecifierListArrayPanel extends Object
Constructor and Description |
---|
SpecifierListArrayPanel(uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] keys,
java.util.function.IntFunction<String> labelFunc)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener l)
Adds a listener for changes to the specifiers.
|
JComponent |
getComponent()
Returns the GUI component containing this panel.
|
uk.ac.starlink.ttools.plot2.config.ConfigMap |
getConfig(int index)
Returns the configuration specified by this panel for a given index.
|
void |
removeActionListener(ActionListener l)
Removes a listener for changes to the specifiers.
|
void |
showElements(int count)
Updates the display to show a given number of specifier sets.
|
public SpecifierListArrayPanel(uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] keys, java.util.function.IntFunction<String> labelFunc)
keys
- defines what specifiers to show for each indexlabelFunc
- provides a generic label (applied to all keys)
for each indexpublic uk.ac.starlink.ttools.plot2.config.ConfigMap getConfig(int index)
index
- array indexpublic JComponent getComponent()
public void addActionListener(ActionListener l)
l
- listener to addpublic void removeActionListener(ActionListener l)
l
- listener to removepublic void showElements(int count)
count
- number of specifiers to displayCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.