Package org.htmlunit.cssparser.dom
Class LABColorImpl
java.lang.Object
org.htmlunit.cssparser.dom.AbstractColor
org.htmlunit.cssparser.dom.LABColorImpl
- All Implemented Interfaces:
Serializable
Implementation of LABColor and OKLABColor.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
ConstructorDescriptionLABColorImpl
(String function, LexicalUnit lu) Constructor that reads the values from the given chain of LexicalUnits. -
Method Summary
Modifier and TypeMethodDescriptiongetA()
getA.getB()
getB.void
setA
(CSSValueImpl a) Sets the a part to a new value.void
setB
(CSSValueImpl b) Sets the b part to a new value.void
setLightness
(CSSValueImpl lightness) Sets the lightness part to a new value.toString()
Methods inherited from class org.htmlunit.cssparser.dom.AbstractColor
getAlpha, getAlphaPart, getNumberPercentagePart, setAlpha
-
Constructor Details
-
LABColorImpl
Constructor that reads the values from the given chain of LexicalUnits.- Parameters:
function
- the name of the function; lab or oklablu
- the values- Throws:
DOMException
- in case of error
-
-
Method Details
-
getLightness
- Returns:
- the lightness part.
-
setLightness
Sets the lightness part to a new value.- Parameters:
lightness
- the new CSSValueImpl
-
getA
getA.
- Returns:
- the a part.
-
setA
Sets the a part to a new value.- Parameters:
a
- the new CSSValueImpl
-
getB
getB.
- Returns:
- the b part.
-
setB
Sets the b part to a new value.- Parameters:
b
- the new CSSValueImpl
-
toString
-