public class DashConfigKey extends ChoiceConfigKey<float[]>
BasicStroke.getDashArray()| Constructor and Description |
|---|
DashConfigKey(ConfigMeta meta)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ConfigMeta |
createDashMeta(String shortName,
String longName)
Returns a metadata object suitable for use with a DashConfigKey.
|
Specifier<float[]> |
createSpecifier()
Constructs a graphical control with which the user can
specify a suitable value for association with this key.
|
float[] |
decodeString(String sval)
Takes a string, and attempts to turn it into an object which may
be a value for this key.
|
String |
stringifyValue(float[] dash)
Takes an object which may be a value of this key,
and attempts to turn it into a string for reporting purposes.
|
addOption, getOptionMap, stringToValue, valueToStringcast, getDefaultValue, getMeta, getValueClass, toStringpublic DashConfigKey(ConfigMeta meta)
meta - key metadatapublic float[] decodeString(String sval)
ChoiceConfigKeyThis method should be the opposite of ChoiceConfigKey.stringifyValue(T),
but does not need to be consistent with
stringToValue or
valueToString.
decodeString in class ChoiceConfigKey<float[]>sval - string representationpublic String stringifyValue(float[] dash)
ChoiceConfigKeyThis method should if possible
be the opposite of ChoiceConfigKey.decodeString(java.lang.String),
but does not need to be consistent with
stringToValue or
valueToString.
If no round-trippable value is available, null should be returned.
stringifyValue in class ChoiceConfigKey<float[]>dash - typed objectpublic Specifier<float[]> createSpecifier()
ConfigKeycreateSpecifier in class ConfigKey<float[]>public static ConfigMeta createDashMeta(String shortName, String longName)
shortName - short key namelongName - long key nameCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.