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, stringToValue
cast, getDefaultValue, getMeta, getValueClass, toString
public ShaderConfigKey(ConfigMeta meta, Shader[] shaders, Shader dflt)
meta
- metadatashaders
- list of optionsdflt
- default valuepublic java.lang.String valueToString(Shader shader)
OptionConfigKey
toString
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)
OptionConfigKey
OptionConfigKey.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()
ConfigKey
createSpecifier
in class OptionConfigKey<Shader>
public ShaderConfigKey appendShaderDescription()
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.