public class ScaleConfigKey extends ConfigKey<Scale>
Serialization to string uses
ParsedFunctionCall,
so it's a scale name with optionally comma-separated parameters
enclosed in parentheses, e.g. "linear" or
"symlog(2,.5)". Missing parameters are permitted
and set to the relevant parameter default.
| Constructor and Description |
|---|
ScaleConfigKey(ConfigMeta meta)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Specifier<Scale> |
createSpecifier()
Constructs a graphical control with which the user can
specify a suitable value for association with this key.
|
Scale |
stringToValue(String txt)
Decodes a string value to the value type of this key.
|
String |
valueToString(Scale scale)
Reports a value as a string.
|
cast, getDefaultValue, getMeta, getValueClass, toStringpublic ScaleConfigKey(ConfigMeta meta)
meta - metadatapublic String valueToString(Scale scale)
ConfigKeystringToValue(valueToString(v)).equals(v).
A null value, if permitted, should be represented as an empty string.valueToString in class ConfigKey<Scale>scale - possible value associated with this keypublic Scale stringToValue(String txt) throws ConfigException
ConfigKeystringToValue in class ConfigKey<Scale>txt - string representation of valueConfigExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.