Interface HWBColorValue

All Superinterfaces:
Cloneable, CSSColorValue, CSSPrimitiveValue, CSSTypedValue, CSSValue
All Known Implementing Classes:
HWBColorValue

public interface HWBColorValue extends CSSColorValue
Represents a HWB color value.

Instead of using this interface, you may want to just cast the result of CSSColorValue.getColor() to the appropriate interface (like HWBColor) according to the given CSSColorValue.getColorModel().

  • Method Details

    • getHWBColorValue

      @Deprecated default HWBColor getHWBColorValue()
      Deprecated.
      Get the HWB color represented by this value.
      Returns:
      the HWB color.
      See Also:
    • getColor

      HWBColor getColor()
      Get the HWB color represented by this value.
      Specified by:
      getColor in interface CSSColorValue
      Returns:
      the HWB color.
    • clone

      HWBColorValue clone()
      Description copied from interface: CSSValue
      Creates and returns a copy of this value.
      Specified by:
      clone in interface CSSColorValue
      Specified by:
      clone in interface CSSValue
      Returns:
      a clone of this value.