Interface SyThemeValuesType
public interface SyThemeValuesType
Values that can be retrieved by a theme.
-
Method Summary
Modifier and TypeMethodDescriptioncom.io7m.jtensors.core.parameterized.vectors.PVector4D<SySpaceRGBAPreType> Check that a value exists with the given name and that it has an RGBA color type, and return the current value.doubleCheck that a value exists with the given name and that it has a double type, and return the current value.default SyPaintEdgeTypeCheck that a value exists with the given name and that it has an RGBA color type, and return the current value wrapped as a flat edge paint value.default SyPaintFillTypeCheck that a value exists with the given name and that it has an RGBA color type, and return the current value wrapped as a flat fill paint value.Check that a value exists with the given name and that it has a font type, and return the current value.intCheck that a value exists with the given name and that it has an integer type, and return the current value.voidreset()Reset all values to their defaults.voidsetColor4D(String name, com.io7m.jtensors.core.parameterized.vectors.PVector4D<SySpaceRGBAPreType> value) Check that a value exists with the given name and that it has an RGBA color type, and set the current value tocolor.voidsetColorTransform(String name, SyThemeValueFunctionType<com.io7m.jtensors.core.parameterized.vectors.PVector4D<SySpaceRGBAPreType>> transform) Check that a value exists with the given name and that it has an RGBA color function type, and set the current function totransform.voidCheck that a value exists with the given name and that it has a double type, and set the current value tocolor.voidsetDoubleTransform(String name, SyThemeValueFunctionType<Double> transform) Check that a value exists with the given name and that it has a double function type, and set the current function totransform.voidsetFont(String name, SyFontDescription value) Check that a value exists with the given name and that it has a font type, and set the current value tocolor.voidsetFontTransform(String name, SyThemeValueFunctionType<SyFontDescription> transform) Check that a value exists with the given name and that it has a font function type, and set the current function totransform.voidsetInteger(String name, int value) Check that a value exists with the given name and that it has an integer type, and set the current value tocolor.voidsetIntegerTransform(String name, SyThemeValueFunctionType<Integer> transform) Check that a value exists with the given name and that it has an integer function type, and set the current function totransform.values()
-
Method Details
-
values
Map<String, SyThemeValueType> values()- Returns:
- The current values
-
reset
void reset()Reset all values to their defaults. -
color4D
com.io7m.jtensors.core.parameterized.vectors.PVector4D<SySpaceRGBAPreType> color4D(String name) throws SyThemeValueException Check that a value exists with the given name and that it has an RGBA color type, and return the current value.- Parameters:
name- The value name- Returns:
- The current value
- Throws:
SyThemeValueException- On errors
-
setColor4D
void setColor4D(String name, com.io7m.jtensors.core.parameterized.vectors.PVector4D<SySpaceRGBAPreType> value) throws SyThemeValueException Check that a value exists with the given name and that it has an RGBA color type, and set the current value tocolor.- Parameters:
name- The value namevalue- The new value- Throws:
SyThemeValueException- On errors
-
setColorTransform
void setColorTransform(String name, SyThemeValueFunctionType<com.io7m.jtensors.core.parameterized.vectors.PVector4D<SySpaceRGBAPreType>> transform) throws SyThemeValueException Check that a value exists with the given name and that it has an RGBA color function type, and set the current function totransform.- Parameters:
name- The value nametransform- The new transform- Throws:
SyThemeValueException- On errors
-
integer
Check that a value exists with the given name and that it has an integer type, and return the current value.- Parameters:
name- The value name- Returns:
- The current value
- Throws:
SyThemeValueException- On errors
-
setInteger
Check that a value exists with the given name and that it has an integer type, and set the current value tocolor.- Parameters:
name- The value namevalue- The new value- Throws:
SyThemeValueException- On errors
-
setIntegerTransform
void setIntegerTransform(String name, SyThemeValueFunctionType<Integer> transform) throws SyThemeValueException Check that a value exists with the given name and that it has an integer function type, and set the current function totransform.- Parameters:
name- The value nametransform- The new transform- Throws:
SyThemeValueException- On errors
-
font
Check that a value exists with the given name and that it has a font type, and return the current value.- Parameters:
name- The value name- Returns:
- The current value
- Throws:
SyThemeValueException- On errors
-
setFont
Check that a value exists with the given name and that it has a font type, and set the current value tocolor.- Parameters:
name- The value namevalue- The new value- Throws:
SyThemeValueException- On errors
-
setFontTransform
void setFontTransform(String name, SyThemeValueFunctionType<SyFontDescription> transform) throws SyThemeValueException Check that a value exists with the given name and that it has a font function type, and set the current function totransform.- Parameters:
name- The value nametransform- The new transform- Throws:
SyThemeValueException- On errors
-
double_
Check that a value exists with the given name and that it has a double type, and return the current value.- Parameters:
name- The value name- Returns:
- The current value
- Throws:
SyThemeValueException- On errors
-
setDouble
Check that a value exists with the given name and that it has a double type, and set the current value tocolor.- Parameters:
name- The value namevalue- The new value- Throws:
SyThemeValueException- On errors
-
setDoubleTransform
void setDoubleTransform(String name, SyThemeValueFunctionType<Double> transform) throws SyThemeValueException Check that a value exists with the given name and that it has a double function type, and set the current function totransform.- Parameters:
name- The value nametransform- The new transform- Throws:
SyThemeValueException- On errors
-
fillFlat
Check that a value exists with the given name and that it has an RGBA color type, and return the current value wrapped as a flat fill paint value.- Parameters:
name- The value name- Returns:
- A flat paint
- Throws:
SyThemeValueException- On errors
-
edgeFlat
Check that a value exists with the given name and that it has an RGBA color type, and return the current value wrapped as a flat edge paint value.- Parameters:
name- The value name- Returns:
- A flat paint
- Throws:
SyThemeValueException- On errors
-