- 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 TypeMethodDescriptionshortPerforms a dimensional analysis of this expression and computes the unit type of the result.booleanWhether this value expects an integer result that must be rounded.Methods inherited from interface io.sf.carte.doc.style.css.CSSPrimitiveValue
getUnitType, isNegativeNumber, isPrimitiveValue, setExpectIntegerMethods inherited from interface io.sf.carte.doc.style.css.CSSTypedValue
clone, 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
-
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:
trueif the result of this computation must be rounded to the nearest integer.
-