Package de.xima.fc.interfaces.color
Interface IGuiColor
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CustomColor
,EMrmrsColor
,ENagixChartJsColor
,EQuasarColor
,EWebColors
Interface for the color entries provided by a color palette.
- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescription<T extends Serializable>
TgetField
(IColorField<T> field) Finds the value of the given color palette field.default String
default String
default String
default String
getStyleTextOnWhite
(boolean whiteToBlack) com.google.common.collect.ImmutableSet<IColorField<?>>
default boolean
supportsField
(IColorField<?> field) Checks whether the color field is supported by this color.
-
Method Details
-
getStyleBackground
-
getStyleClassBackground
-
getStyleClassTextOnWhite
-
getStyleTextOnWhite
-
getField
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
Checks whether the color field is supported by this color. When this returnsfalse
for 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:
-