- 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.ColorModelNested 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, toRGBColorMethods inherited from interface io.sf.carte.doc.style.css.CSSPrimitiveValue
getUnitType, isNegativeNumber, isPrimitiveValue, setExpectIntegerMethods inherited from interface io.sf.carte.doc.style.css.CSSTypedValue
getFloatValue, getFloatValue, getStringValue, isCalculatedNumber, isNumberZero, setFloatValue, setStringValue, toRGBColor, toRGBColorValueMethods inherited from interface io.sf.carte.doc.style.css.CSSValue
getCssText, getCssValueType, getMinifiedCssText, getMinifiedCssText, getPrecedingComments, getPrimitiveType, getTrailingComments, 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
hslandhwbas 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
nullif no percentage was explicitly set.
-
getPercentage2
CSSPrimitiveValue getPercentage2()Gives the percentage that applies to the second color.- Returns:
- the percentage or
nullif no percentage was explicitly set.
-
clone
CSSColorMixFunction clone()Description copied from interface:CSSColorValueCreates and returns a copy of this value.- Specified by:
clonein interfaceCSSColorValue- Specified by:
clonein interfaceCSSTypedValue- Specified by:
clonein interfaceCSSValue- Returns:
- a clone of this value.
-