Class AbstractColor

java.lang.Object
org.htmlunit.cssparser.dom.AbstractColor
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HSLColorImpl, HWBColorImpl, LABColorImpl, LCHColorImpl, RGBColorImpl

public class AbstractColor extends Object implements Serializable
Color base class.
Author:
Ronald Brill
See Also:
  • Constructor Details

    • AbstractColor

      public AbstractColor()
  • Method Details

    • getNumberPercentagePart

      protected void getNumberPercentagePart(LexicalUnit next, Consumer<CSSValueImpl> setter)
    • getAlphaPart

      protected void getAlphaPart(LexicalUnit next)
    • getAlpha

      public CSSValueImpl getAlpha()
      Returns:
      the alpha part.
    • setAlpha

      public void setAlpha(CSSValueImpl alpha)
      Sets the alpha part to a new value.
      Parameters:
      alpha - the new CSSValueImpl