- All Superinterfaces:
Cloneable
,CSSPrimitiveValue
,CSSTypedValue
,CSSValue
- All Known Subinterfaces:
CSSExpressionValue
,CSSMathFunctionValue
- All Known Implementing Classes:
CalcValue
,ExpressionValue
,MathFunctionValue
Values involving mathematical computations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSValue
CSSValue.CssType, CSSValue.Type
-
Method Summary
Modifier and TypeMethodDescriptionshort
Performs a dimensional analysis of this expression and computes the unit type of the result.boolean
Whether this value expects an integer result that must be rounded.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
clone, 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
-
computeUnitType
short computeUnitType()Performs a dimensional analysis of this expression and computes the unit type of the result.- Returns:
- the unit type of the result, as in
CSSUnit
.
-
isExpectingInteger
boolean isExpectingInteger()Whether this value expects an integer result that must be rounded.- Returns:
true
if the result of this computation must be rounded to the nearest integer.
-