public class ShaderConfigKey extends ChoiceConfigKey<Shader>
| Constructor | Description |
|---|---|
ShaderConfigKey(ConfigMeta meta,
Shader[] shaders,
Shader dflt) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
ShaderConfigKey |
appendShaderDescription() |
Appends a list of the available shaders, as well as rules for
naming custom ones, to the end of the existing XML documentation
for this key.
|
static ConfigMeta |
createAxisMeta(java.lang.String shortName,
java.lang.String longName,
java.lang.String axName) |
Creates a key description suitable for a colour map applied to
a named axis.
|
Specifier<Shader> |
createSpecifier() |
Constructs a graphical control with which the user can
specify a suitable value for association with this key.
|
Shader |
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(Shader value) |
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 ShaderConfigKey(ConfigMeta meta, Shader[] shaders, Shader dflt)
meta - metadatashaders - list of optionsdflt - default valuepublic Shader 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<Shader>sval - string representationpublic java.lang.String stringifyValue(Shader value)
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<Shader>value - typed objectpublic Specifier<Shader> createSpecifier()
ConfigKeycreateSpecifier in class ConfigKey<Shader>public ShaderConfigKey appendShaderDescription()
public static ConfigMeta createAxisMeta(java.lang.String shortName, java.lang.String longName, java.lang.String axName)
shortName - metadata short namelongName - metadata long nameaxName - user-readable name of axis to which this appliesCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.