Class HWBColorImpl

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

public class HWBColorImpl extends AbstractColor
Implementation of HWBColor.
Author:
Ronald Brill
See Also:
  • Constructor Details

    • HWBColorImpl

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

    • getHue

      public CSSValueImpl getHue()
      Returns:
      the hue part.
    • setHue

      public void setHue(CSSValueImpl hue)
      Sets the hue part to a new value.
      Parameters:
      hue - the new CSSValueImpl
    • getWhiteness

      public CSSValueImpl getWhiteness()
      Returns:
      the whiteness part.
    • setWhiteness

      public void setWhiteness(CSSValueImpl whiteness)
      Sets the whiteness part to a new value.
      Parameters:
      whiteness - the new CSSValueImpl
    • getBlackness

      public CSSValueImpl getBlackness()
      Returns:
      the blackness part.
    • setBlackness

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

      public String toString()
      Overrides:
      toString in class Object