java.lang.Object
io.sf.carte.doc.style.css.property.StyleValue
io.sf.carte.doc.style.css.property.PrimitiveValue
io.sf.carte.doc.style.css.property.TypedValue
io.sf.carte.doc.style.css.property.FunctionValue
- All Implemented Interfaces:
- CSSFunctionValue,- CSSPrimitiveValue,- CSSTypedValue,- CSSValue,- Serializable,- Cloneable
- Direct Known Subclasses:
- GradientValue,- MathFunctionValue,- TransformFunction
Function value.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSValueCSSValue.CssType, CSSValue.Type
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedFunctionValue(CSSValue.Type type) protectedFunctionValue(FunctionValue copied) 
- 
Method SummaryModifier and TypeMethodDescriptionclone()Creates and returns a copy of this object.booleanGet the arguments of this function.getComponent(int index) Get the component atindex.intGet the number of components of this value.Get a string representation of the current value.Get the function name.getMinifiedCssText(String pname) Gives a minified version of the css text of the property.If this value represents a string value, get it.inthashCode()voidsetComponent(int index, StyleValue component) If this value has components, set the component atindex.voidwriteCssText(SimpleWriter wri) Serialize this value to aSimpleWriter.Methods inherited from class io.sf.carte.doc.style.css.property.TypedValuegetCssValueType, getFloatValue, isNumberZeroMethods inherited from class io.sf.carte.doc.style.css.property.PrimitiveValuegetPrecedingComments, getPrimitiveType, getTrailingComments, isPrimitiveValue, isSubproperty, setExpectInteger, setSubpropertyMethods inherited from class io.sf.carte.doc.style.css.property.StyleValueisSystemDefault, matches, setCssText, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.sf.carte.doc.style.css.CSSPrimitiveValuegetUnitType, isNegativeNumber, isPrimitiveValue, setExpectIntegerMethods inherited from interface io.sf.carte.doc.style.css.CSSTypedValuegetFloatValue, getFloatValue, isCalculatedNumber, isNumberZero, setFloatValue, setStringValue, toRGBColor, toRGBColorValueMethods inherited from interface io.sf.carte.doc.style.css.CSSValuegetCssValueType, getMinifiedCssText, getPrecedingComments, getPrimitiveType, getTrailingComments, matches, setCssText
- 
Constructor Details- 
FunctionValuepublic FunctionValue()
- 
FunctionValue
- 
FunctionValue
 
- 
- 
Method Details- 
getArgumentsDescription copied from interface:CSSFunctionValueGet the arguments of this function.- Specified by:
- getArgumentsin interface- CSSFunctionValue
- Returns:
- the list of arguments of this function.
 
- 
getComponentDescription copied from class:TypedValueGet the component atindex.This method allows to access the components regardless of them being indexed or not. It is convenient to perform common tasks at the components (like when computing values). - Overrides:
- getComponentin class- TypedValue
- Parameters:
- index- the index. For colors, index- 0is always the alpha channel.
- Returns:
- the component, or nullif the index is incorrect.
 
- 
setComponentDescription copied from class:TypedValueIf this value has components, set the component atindex.This method allows to access the components regardless of them being formally indexed or not. It is convenient to perform common tasks at the components (like when computing values). - Overrides:
- setComponentin class- TypedValue
- Parameters:
- index- the index. For colors, index- 0is always the alpha channel. Setting a component at an index that does not exist has no effect.
- component- the new component. Cannot be a- KEYWORDnor a- SHORTHAND. For colors, must be a primitive value (that is, either- TYPEDor a- PROXY).
 
- 
getComponentCountpublic int getComponentCount()Description copied from class:TypedValueGet the number of components of this value.- Overrides:
- getComponentCountin class- TypedValue
- Returns:
- the number of components, 0if none.
 
- 
getFunctionNameDescription copied from interface:CSSFunctionValueGet the function name.- Specified by:
- getFunctionNamein interface- CSSFunctionValue
- Returns:
- the function name.
 
- 
getCssTextDescription copied from class:StyleValueGet a string representation of the current value.- Specified by:
- getCssTextin interface- CSSValue
- Specified by:
- getCssTextin class- StyleValue
- Returns:
- the css text representing the value of this property.
 
- 
getMinifiedCssTextDescription copied from interface:CSSValueGives a minified version of the css text of the property.It may be customized for the given property name. - Specified by:
- getMinifiedCssTextin interface- CSSValue
- Overrides:
- getMinifiedCssTextin class- StyleValue
- Parameters:
- pname- the property name.
- Returns:
- the minified css text.
 
- 
writeCssTextDescription copied from interface:CSSValueSerialize this value to aSimpleWriter.- Specified by:
- writeCssTextin interface- CSSValue
- Parameters:
- wri- the SimpleWriter.
- Throws:
- IOException- if an error happened while writing.
 
- 
getStringValueDescription copied from interface:CSSTypedValueIf this value represents a string value, get it.This method is useful for values like strings, identifiers, URIs, element references, etc. For functions, it returns the function name. - Specified by:
- getStringValuein interface- CSSTypedValue
- Returns:
- the string value.
- Throws:
- DOMException- INVALID_ACCESS_ERR if this value is not a string.
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- PrimitiveValue
 
- 
equals- Overrides:
- equalsin class- PrimitiveValue
 
- 
cloneDescription copied from class:TypedValueCreates and returns a copy of this object.The object will be the same except for the subpropertyflag, that will be disabled in the clone object.- Specified by:
- clonein interface- CSSFunctionValue
- Specified by:
- clonein interface- CSSTypedValue
- Specified by:
- clonein interface- CSSValue
- Specified by:
- clonein class- TypedValue
- Returns:
- a copy of this object.
 
 
-