Interface HSLColorValue

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

public interface HSLColorValue extends CSSColorValue
Represents a HSL color value.

Instead of using this interface, you may want to just cast the result of CSSColorValue.getColor() to the appropriate interface (like HSLColor) according to the given CSSColorValue.getColorModel().

  • Method Details

    • getHSLColorValue

      @Deprecated default HSLColor getHSLColorValue()
      Deprecated.
      Get the HSL(A) color represented by this value.
      Returns:
      the HSL color.
      See Also:
    • getColor

      HSLColor getColor()
      Get the HSL(A) color represented by this value.
      Specified by:
      getColor in interface CSSColorValue
      Returns:
      the HSL color.
    • clone

      HSLColorValue 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
      Returns:
      a clone of this value.