Class HSLColorImpl

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

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

    • HSLColorImpl

      public HSLColorImpl(String function, LexicalUnit lu) throws DOMException
      Constructor that reads the values from the given chain of LexicalUnits.
      Parameters:
      function - the name of the function; hsl or hsla
      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
    • getSaturation

      public CSSValueImpl getSaturation()
      Returns:
      the saturation part.
    • setSaturation

      public void setSaturation(CSSValueImpl saturation)
      Sets the saturation part to a new value.
      Parameters:
      saturation - the new CSSValueImpl
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object