Class ScaleConfigKey
java.lang.Object
uk.ac.starlink.ttools.plot2.config.ConfigKey<Scale>
uk.ac.starlink.ttools.plot2.config.ScaleConfigKey
Config key for axis scales.
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.
- Since:
- 20 Mar 2025
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs a graphical control with which the user can specify a suitable value for association with this key.stringToValue(String txt) Decodes a string value to the value type of this key.valueToString(Scale scale) Reports a value as a string.Methods inherited from class ConfigKey
cast, getDefaultValue, getMeta, getValueClass, toString
-
Constructor Details
-
ScaleConfigKey
-
-
Method Details
-
valueToString
Description copied from class:ConfigKeyReports a value as a string. If at all possible the roundtripping should be possible, sostringToValue(valueToString(v)).equals(v). A null value, if permitted, should be represented as an empty string.- Specified by:
valueToStringin classConfigKey<Scale>- Parameters:
scale- possible value associated with this key- Returns:
- string representation
-
stringToValue
Description copied from class:ConfigKeyDecodes a string value to the value type of this key. An empty string should be interpreted as a null value, but this may cause an exception if null is not a permissible value for this key.- Specified by:
stringToValuein classConfigKey<Scale>- Parameters:
txt- string representation of value- Returns:
- value
- Throws:
ConfigException
-
createSpecifier
-