- All Superinterfaces:
Cloneable,CSSFunctionValue,CSSMathValue,CSSPrimitiveValue,CSSTypedValue,CSSValue
- All Known Implementing Classes:
MathFunctionValue
A mathematical function value.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumeration of mathematical functions.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.shortPerforms a dimensional analysis of this function and computes the unit type of the result.Get the function type.intGives the index of this mathematical function.Methods inherited from interface io.sf.carte.doc.style.css.CSSFunctionValue
getArguments, getFunctionNameMethods inherited from interface io.sf.carte.doc.style.css.CSSMathValue
isExpectingIntegerMethods 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
-
getFunction
CSSMathFunctionValue.MathFunction getFunction()Get the function type.- Returns:
- the function type.
-
getFunctionIndex
int getFunctionIndex()Gives the index of this mathematical function.- Returns:
- the function index.
-
computeUnitType
short computeUnitType()Performs a dimensional analysis of this function and computes the unit type of the result.- Specified by:
computeUnitTypein interfaceCSSMathValue- Returns:
- the unit type of the result, as in
CSSUnit.
-
clone
CSSMathFunctionValue clone()Description copied from interface:CSSValueCreates and returns a copy of this value.- Specified by:
clonein interfaceCSSFunctionValue- Specified by:
clonein interfaceCSSTypedValue- Specified by:
clonein interfaceCSSValue- Returns:
- a clone of this value.
-