Package de.xima.fc.interfaces.color
Interface IGuiColor
- 
- All Superinterfaces:
 Serializable
- All Known Implementing Classes:
 CustomColor,EMrmrsColor,ENagixChartJsColor,EQuasarColor,EWebColors
public interface IGuiColor extends Serializable
Interface for the color entries provided by a color palette.- Since:
 - 6.5.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T extends Serializable>
TgetField(IColorField<T> field)Finds the value of the given color palette field.default StringgetStyleBackground()default StringgetStyleClassBackground()default StringgetStyleClassTextOnWhite()default StringgetStyleTextOnWhite(boolean whiteToBlack)com.google.common.collect.ImmutableSet<IColorField<?>>getSupportedFields()default booleansupportsField(IColorField<?> field)Checks whether the color field is supported by this color. 
 - 
 
- 
- 
Method Detail
- 
getStyleBackground
default String getStyleBackground()
 
- 
getStyleClassBackground
default String getStyleClassBackground()
 
- 
getStyleClassTextOnWhite
default String getStyleClassTextOnWhite()
 
- 
getStyleTextOnWhite
default String getStyleTextOnWhite(boolean whiteToBlack)
 
- 
getField
<T extends Serializable> T getField(IColorField<T> field) throws IllegalArgumentException
Finds the value of the given color palette field.- Type Parameters:
 T- Type of the field value.- Parameters:
 field- A field to retrieve.- Returns:
 - The value of this color palette entry for the given field.
 - Throws:
 IllegalArgumentException- If the given field is not supported, seeEColorPalette#supportsField.
 
- 
getSupportedFields
com.google.common.collect.ImmutableSet<IColorField<?>> getSupportedFields()
- Returns:
 - All fields supported by this color.
 - See Also:
 supportsField(IColorField)
 
- 
supportsField
default boolean supportsField(IColorField<?> field)
Checks whether the color field is supported by this color. When this returnsfalsefor a certainIColorField,getField(IColorField)will throw an exception when called with that field. Otherwise, when this returnstrue, a value is available.- Parameters:
 field- A field to check.- Returns:
 - Whether the given color field is support by this color.
 - See Also:
 getSupportedFields()
 
 - 
 
 -