Interface SyThemeValuesBuilderType
public interface SyThemeValuesBuilderType
A mutable builder to construct value sets.
-
Method Summary
Modifier and TypeMethodDescriptioncreate()createConstantColor4D(String name, String description, com.io7m.jtensors.core.parameterized.vectors.PVector4D<SySpaceRGBAPreType> value) Create a new named constant with an RGBA color type.createConstantDouble(String name, String description, double value) Create a new named constant with a double type.createConstantFont(String name, String description, SyFontDescription value) Create a new named constant with a font type.createConstantInteger(String name, String description, int value) Create a new named constant with an integer type.createFunctionColor4D(String name, String description, String source, SyThemeValueFunctionType<com.io7m.jtensors.core.parameterized.vectors.PVector4D<SySpaceRGBAPreType>> value) Create a new named function that transforms RGBA color types.createFunctionDouble(String name, String description, String source, SyThemeValueFunctionType<Double> value) Create a new named function that transforms doubles.createFunctionFont(String name, String description, String source, SyThemeValueFunctionType<SyFontDescription> value) Create a new named function that transforms fonts.createFunctionInteger(String name, String description, String source, SyThemeValueFunctionType<Integer> value) Create a new named function that transforms integers.
-
Method Details
-
createConstantColor4D
SyThemeValuesBuilderType createConstantColor4D(String name, String description, com.io7m.jtensors.core.parameterized.vectors.PVector4D<SySpaceRGBAPreType> value) throws SyThemeValueException Create a new named constant with an RGBA color type.- Parameters:
name- The namedescription- The humanly-readable descriptionvalue- The value- Returns:
- this
- Throws:
SyThemeValueException- On errors
-
createConstantInteger
SyThemeValuesBuilderType createConstantInteger(String name, String description, int value) throws SyThemeValueException Create a new named constant with an integer type.- Parameters:
name- The namedescription- The humanly-readable descriptionvalue- The value- Returns:
- this
- Throws:
SyThemeValueException- On errors
-
createConstantFont
SyThemeValuesBuilderType createConstantFont(String name, String description, SyFontDescription value) throws SyThemeValueException Create a new named constant with a font type.- Parameters:
name- The namedescription- The humanly-readable descriptionvalue- The value- Returns:
- this
- Throws:
SyThemeValueException- On errors
-
createConstantDouble
SyThemeValuesBuilderType createConstantDouble(String name, String description, double value) throws SyThemeValueException Create a new named constant with a double type.- Parameters:
name- The namedescription- The humanly-readable descriptionvalue- The value- Returns:
- this
- Throws:
SyThemeValueException- On errors
-
createFunctionColor4D
SyThemeValuesBuilderType createFunctionColor4D(String name, String description, String source, SyThemeValueFunctionType<com.io7m.jtensors.core.parameterized.vectors.PVector4D<SySpaceRGBAPreType>> value) throws SyThemeValueException Create a new named function that transforms RGBA color types.- Parameters:
name- The namedescription- The humanly-readable descriptionsource- The name of the source that will be passed to this functionvalue- The value- Returns:
- this
- Throws:
SyThemeValueException- On errors
-
createFunctionInteger
SyThemeValuesBuilderType createFunctionInteger(String name, String description, String source, SyThemeValueFunctionType<Integer> value) throws SyThemeValueException Create a new named function that transforms integers.- Parameters:
name- The namedescription- The humanly-readable descriptionsource- The name of the source that will be passed to this functionvalue- The value- Returns:
- this
- Throws:
SyThemeValueException- On errors
-
createFunctionDouble
SyThemeValuesBuilderType createFunctionDouble(String name, String description, String source, SyThemeValueFunctionType<Double> value) throws SyThemeValueException Create a new named function that transforms doubles.- Parameters:
name- The namedescription- The humanly-readable descriptionsource- The name of the source that will be passed to this functionvalue- The value- Returns:
- this
- Throws:
SyThemeValueException- On errors
-
createFunctionFont
SyThemeValuesBuilderType createFunctionFont(String name, String description, String source, SyThemeValueFunctionType<SyFontDescription> value) throws SyThemeValueException Create a new named function that transforms fonts.- Parameters:
name- The namedescription- The humanly-readable descriptionsource- The name of the source that will be passed to this functionvalue- The value- Returns:
- this
- Throws:
SyThemeValueException- On errors
-
create
SyThemeValuesType create()- Returns:
- An value set based on all of the parameters given so far
-