Package io.sf.carte.doc.style.css
Interface HWBColorValue
- All Superinterfaces:
Cloneable,CSSColorValue,CSSPrimitiveValue,CSSTypedValue,CSSValue
- All Known Implementing Classes:
HWBColorValue
Represents a HWB color value.
Instead of using this interface, you may want to just cast the result of
CSSColorValue.getColor() to the appropriate interface (like
HWBColor) according to the given
CSSColorValue.getColorModel().
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSColorValue
CSSColorValue.ColorModelNested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSValue
CSSValue.CssType, CSSValue.Type -
Method Summary
Methods inherited from interface io.sf.carte.doc.style.css.CSSColorValue
deltaE2000, getColorModel, toLABColorValue, toLCHColorValue, toRGBColorMethods inherited from interface io.sf.carte.doc.style.css.CSSPrimitiveValue
getUnitType, isNegativeNumber, setExpectIntegerMethods inherited from interface io.sf.carte.doc.style.css.CSSTypedValue
getFloatValue, getStringValue, isCalculatedNumber, isNumberZero, setFloatValue, setStringValue, toRGBColor, toRGBColorValueMethods inherited from interface io.sf.carte.doc.style.css.CSSValue
getCssText, getCssValueType, getMinifiedCssText, getPrimitiveType, matches, setCssText, writeCssText
-
Method Details
-
getHWBColorValue
Deprecated.Get the HWB color represented by this value.- Returns:
- the HWB color.
- See Also:
-
getColor
HWBColor getColor()Get the HWB color represented by this value.- Specified by:
getColorin interfaceCSSColorValue- Returns:
- the HWB color.
-
clone
HWBColorValue clone()Description copied from interface:CSSValueCreates and returns a copy of this value.- Specified by:
clonein interfaceCSSColorValue- Specified by:
clonein interfaceCSSValue- Returns:
- a clone of this value.
-