Interface IGuiColor

    • 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, see EColorPalette#supportsField.
      • supportsField

        default boolean supportsField​(IColorField<?> field)
        Checks whether the color field is supported by this color. When this returns false for a certain IColorField, getField(IColorField) will throw an exception when called with that field. Otherwise, when this returns true, a value is available.
        Parameters:
        field - A field to check.
        Returns:
        Whether the given color field is support by this color.
        See Also:
        getSupportedFields()