Package io.sf.carte.doc.style.css
Interface LCHColorValue
- All Superinterfaces:
Cloneable,CSSColorValue,CSSPrimitiveValue,CSSTypedValue,CSSValue
- All Known Implementing Classes:
LCHColorValue
Deprecated.
Represents a color value with the LCh color model, like
lch() or
oklch().
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.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
-
getColor
LCHColor getColor()Deprecated.Get thelch()oroklch()color represented by this value.- Specified by:
getColorin interfaceCSSColorValue- Returns:
- the
lch()oroklch()color.
-
clone
LCHColorValue clone()Deprecated.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.
-
CSSColorValue.getColor()to the appropriate interface (likeLCHColor) according to the givenCSSColorValue.getColorModel().