public class ShaderConfigKey extends OptionConfigKey<Shader>
| Constructor and Description |
|---|
ShaderConfigKey(ConfigMeta meta,
Shader[] shaders,
Shader dflt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ShaderConfigKey |
appendShaderDescription()
Appends a list of the available shaders to the end of the existing
XML documentation for this key.
|
Specifier<Shader> |
createSpecifier()
Constructs a graphical control with which the user can
specify a suitable value for association with this key.
|
java.lang.String |
getXmlDescription(Shader shader)
Returns a description in XML of the given option value.
|
java.lang.String |
valueToString(Shader shader)
Invokes the
toString method of the supplied option. |
addOptionsXml, getOptions, getOptionsXml, setOptionUsage, stringToValuecast, getDefaultValue, getMeta, getValueClass, toStringpublic ShaderConfigKey(ConfigMeta meta, Shader[] shaders, Shader dflt)
meta - metadatashaders - list of optionsdflt - default valuepublic java.lang.String valueToString(Shader shader)
OptionConfigKeytoString method of the supplied option.
May be overridden.valueToString in class OptionConfigKey<Shader>shader - possible value associated with this keypublic java.lang.String getXmlDescription(Shader shader)
OptionConfigKeyOptionConfigKey.valueToString(T),
is used by the OptionConfigKey.getOptionsXml() method to assemble
a described list of the options.getXmlDescription in class OptionConfigKey<Shader>shader - possible value of this keypublic Specifier<Shader> createSpecifier()
ConfigKeycreateSpecifier in class OptionConfigKey<Shader>public ShaderConfigKey appendShaderDescription()
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.