Interface LABColorValue

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

@Deprecated public interface LABColorValue extends CSSColorValue
Deprecated.
Instead of using this interface, just cast the result of CSSColorValue.getColor() to the appropriate interface (like LABColor) according to the given CSSColorValue.getColorModel().
Represents a color value with the Lab color model, like (lab()) or oklab().

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

  • Method Details

    • getColor

      LABColor getColor()
      Deprecated.
      Get the lab() or oklab() color represented by this value.
      Specified by:
      getColor in interface CSSColorValue
      Returns:
      the lab() or oklab() color.
    • clone

      LABColorValue 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.