Package org.htmlunit.cssparser.dom
Class AbstractColor
java.lang.Object
org.htmlunit.cssparser.dom.AbstractColor
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HSLColorImpl
,HWBColorImpl
,LABColorImpl
,LCHColorImpl
,RGBColorImpl
Color base class.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlpha()
protected void
getAlphaPart
(LexicalUnit next) protected void
getNumberPercentagePart
(LexicalUnit next, Consumer<CSSValueImpl> setter) void
setAlpha
(CSSValueImpl alpha) Sets the alpha part to a new value.
-
Constructor Details
-
AbstractColor
public AbstractColor()
-
-
Method Details
-
getNumberPercentagePart
-
getAlphaPart
-
getAlpha
- Returns:
- the alpha part.
-
setAlpha
Sets the alpha part to a new value.- Parameters:
alpha
- the new CSSValueImpl
-