Interface LCHColorValue

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

@Deprecated public interface LCHColorValue extends CSSColorValue
Deprecated.
Instead of using this interface, just cast the result of CSSColorValue.getColor() to the appropriate interface (like LCHColor) according to the given CSSColorValue.getColorModel().
Represents a color value with the LCh color model, like lch() or oklch().

It is not guaranteed that all colors with a LCh model shall implement this interface, therefore its usage is not recommended.

  • Method Details

    • getColor

      LCHColor getColor()
      Deprecated.
      Get the lch() or oklch() color represented by this value.
      Specified by:
      getColor in interface CSSColorValue
      Returns:
      the lch() or oklch() color.
    • clone

      LCHColorValue clone()
      Deprecated.
      Description copied from interface: CSSColorValue
      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.