public class DashConfigKey extends ChoiceConfigKey<float[]>
BasicStroke.getDashArray()| Constructor | Description |
|---|---|
DashConfigKey(ConfigMeta meta) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ConfigMeta |
createDashMeta(java.lang.String shortName,
java.lang.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(java.lang.String sval) |
Takes a string, and attempts to turn it into an object which may
be a value for this key.
|
java.lang.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(java.lang.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 java.lang.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(java.lang.String shortName, java.lang.String longName)
shortName - short key namelongName - long key nameCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.