- All Superinterfaces:
Cloneable
,CSSColorValue
,CSSPrimitiveValue
,CSSTypedValue
,CSSValue
color-mix()
function.-
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
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this value.The first color value.The second color value.Gets the interpolation color space, as defined by CSS.Gives the percentage that applies to the first color.Gives the percentage that applies to the second color.Methods inherited from interface io.sf.carte.doc.style.css.CSSColorValue
deltaE2000, getColor, getColorModel, toLABColorValue, toLCHColorValue, toRGBColor
Methods inherited from interface io.sf.carte.doc.style.css.CSSPrimitiveValue
getUnitType, isNegativeNumber, isPrimitiveValue, 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, getMinifiedCssText, getPrimitiveType, matches, setCssText, writeCssText
-
Method Details
-
getCSSColorSpace
String getCSSColorSpace()Gets the interpolation color space, as defined by CSS.Beware that this color space may be different from the one reported by the interpolated color, given that CSS considers
hsl
andhwb
as color spaces despite the actual color space beingsRGB
.- Returns:
- the interpolation color space.
-
getColorValue1
CSSPrimitiveValue getColorValue1()The first color value.- Returns:
- the first color value.
-
getColorValue2
CSSPrimitiveValue getColorValue2()The second color value.- Returns:
- the second color value.
-
getPercentage1
CSSPrimitiveValue getPercentage1()Gives the percentage that applies to the first color.- Returns:
- the percentage or
null
if no percentage was explicitly set.
-
getPercentage2
CSSPrimitiveValue getPercentage2()Gives the percentage that applies to the second color.- Returns:
- the percentage or
null
if no percentage was explicitly set.
-
clone
CSSColorMixFunction clone()Description copied from interface:CSSColorValue
Creates and returns a copy of this value.- Specified by:
clone
in interfaceCSSColorValue
- Specified by:
clone
in interfaceCSSTypedValue
- Specified by:
clone
in interfaceCSSValue
- Returns:
- a clone of this value.
-