Package org.htmlunit.cssparser.dom
Class HWBColorImpl
java.lang.Object
org.htmlunit.cssparser.dom.AbstractColor
org.htmlunit.cssparser.dom.HWBColorImpl
- All Implemented Interfaces:
Serializable
Implementation of HWBColor.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
ConstructorDescriptionHWBColorImpl
(String function, LexicalUnit lu) Constructor that reads the values from the given chain of LexicalUnits. -
Method Summary
Modifier and TypeMethodDescriptiongetHue()
void
setBlackness
(CSSValueImpl blackness) Sets the blackness part to a new value.void
setHue
(CSSValueImpl hue) Sets the hue part to a new value.void
setWhiteness
(CSSValueImpl whiteness) Sets the whiteness part to a new value.toString()
Methods inherited from class org.htmlunit.cssparser.dom.AbstractColor
getAlpha, getAlphaPart, getNumberPercentagePart, setAlpha
-
Constructor Details
-
HWBColorImpl
Constructor that reads the values from the given chain of LexicalUnits.- Parameters:
function
- the name of the function; hwblu
- the values- Throws:
DOMException
- in case of error
-
-
Method Details
-
getHue
- Returns:
- the hue part.
-
setHue
Sets the hue part to a new value.- Parameters:
hue
- the new CSSValueImpl
-
getWhiteness
- Returns:
- the whiteness part.
-
setWhiteness
Sets the whiteness part to a new value.- Parameters:
whiteness
- the new CSSValueImpl
-
getBlackness
- Returns:
- the blackness part.
-
setBlackness
Sets the blackness part to a new value.- Parameters:
blackness
- the new CSSValueImpl
-
toString
-