Class LABColorImpl

java.lang.Object
org.htmlunit.cssparser.dom.AbstractColor
org.htmlunit.cssparser.dom.LABColorImpl
All Implemented Interfaces:
Serializable

public class LABColorImpl extends AbstractColor
Implementation of LABColor and OKLABColor.
Author:
Ronald Brill
See Also:
  • Constructor Details

    • LABColorImpl

      public LABColorImpl(String function, LexicalUnit lu) throws DOMException
      Constructor that reads the values from the given chain of LexicalUnits.
      Parameters:
      function - the name of the function; lab or oklab
      lu - the values
      Throws:
      DOMException - in case of error
  • Method Details

    • getLightness

      public CSSValueImpl getLightness()
      Returns:
      the lightness part.
    • setLightness

      public void setLightness(CSSValueImpl lightness)
      Sets the lightness part to a new value.
      Parameters:
      lightness - the new CSSValueImpl
    • getA

      public CSSValueImpl getA()

      getA.

      Returns:
      the a part.
    • setA

      public void setA(CSSValueImpl a)
      Sets the a part to a new value.
      Parameters:
      a - the new CSSValueImpl
    • getB

      public CSSValueImpl getB()

      getB.

      Returns:
      the b part.
    • setB

      public void setB(CSSValueImpl b)
      Sets the b part to a new value.
      Parameters:
      b - the new CSSValueImpl
    • toString

      public String toString()
      Overrides:
      toString in class Object