Interface LABColorValue

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

@Deprecated public interface LABColorValue extends CSSColorValue
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()
      Get the lab() or oklab() color represented by this value.
      Specified by:
      getColor in interface CSSColorValue
      the lab() or oklab() color.
    • clone

      LABColorValue 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
      a clone of this value.