Package io.sf.carte.doc.style.css
Interface LABColorValue
- All Superinterfaces:
Cloneable
,CSSColorValue
,CSSPrimitiveValue
,CSSTypedValue
,CSSValue
- All Known Implementing Classes:
LABColorValue
Deprecated.
Represents a color value with the Lab color model, like (
lab()
) or
oklab()
.
It is not guaranteed that all colors with a LCh model shall implement this interface, therefore its usage is not recommended.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSColorValue
CSSColorValue.ColorModel
Nested 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, toRGBColor
Methods inherited from interface io.sf.carte.doc.style.css.CSSPrimitiveValue
getUnitType, isNegativeNumber, setExpectInteger
Methods inherited from interface io.sf.carte.doc.style.css.CSSTypedValue
getFloatValue, getStringValue, isCalculatedNumber, isNumberZero, setFloatValue, setStringValue, toRGBColor, toRGBColorValue
Methods inherited from interface io.sf.carte.doc.style.css.CSSValue
getCssText, getCssValueType, getMinifiedCssText, getPrimitiveType, matches, setCssText, writeCssText
-
Method Details
-
getColor
LABColor getColor()Deprecated.Get thelab()
oroklab()
color represented by this value.- Specified by:
getColor
in interfaceCSSColorValue
- Returns:
- the
lab()
oroklab()
color.
-
clone
LABColorValue clone()Deprecated.Description copied from interface:CSSValue
Creates and returns a copy of this value.- Specified by:
clone
in interfaceCSSColorValue
- Specified by:
clone
in interfaceCSSValue
- Returns:
- a clone of this value.
-
CSSColorValue.getColor()
to the appropriate interface (likeLABColor
) according to the givenCSSColorValue.getColorModel()
.