Class CSSOMComputedStyle
java.lang.Object
org.apache.batik.css.dom.CSSOMComputedStyle
- All Implemented Interfaces:
CSSStyleDeclaration
- Direct Known Subclasses:
CSSOMSVGComputedStyle
This class represents the computed style of an element.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassTo manage a computed CSSValue. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CSSEngineThe CSS engine used to compute the values.protected CSSStylableElementThe associated element.protected StringThe optional pseudo-element.protected MapThe CSS values. -
Constructor Summary
ConstructorsConstructorDescriptionCSSOMComputedStyle(CSSEngine e, CSSStylableElement elt, String pseudoElt) Creates a new computed style. -
Method Summary
Modifier and TypeMethodDescriptionprotected CSSValuecreateCSSValue(int idx) Creates a CSSValue to manage the value at the given index.DOM: ImplementsCSSStyleDeclaration.getCssText().intDOM: ImplementsCSSStyleDeclaration.getLength().DOM: ImplementsCSSStyleDeclaration.getParentRule().getPropertyCSSValue(String propertyName) DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String).getPropertyPriority(String propertyName) DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String).getPropertyValue(String propertyName) DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String).item(int index) DOM: ImplementsCSSStyleDeclaration.item(int).removeProperty(String propertyName) DOM: ImplementsCSSStyleDeclaration.removeProperty(String).voidsetCssText(String cssText) DOM: ImplementsCSSStyleDeclaration.setCssText(String).voidsetProperty(String propertyName, String value, String prio) DOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String).
-
Field Details
-
cssEngine
The CSS engine used to compute the values. -
element
The associated element. -
pseudoElement
The optional pseudo-element. -
values
The CSS values.
-
-
Constructor Details
-
CSSOMComputedStyle
Creates a new computed style.
-
-
Method Details
-
getCssText
DOM: ImplementsCSSStyleDeclaration.getCssText().- Specified by:
getCssTextin interfaceCSSStyleDeclaration
-
setCssText
DOM: ImplementsCSSStyleDeclaration.setCssText(String). Throws a NO_MODIFICATION_ALLOWED_ERRDOMException.- Specified by:
setCssTextin interfaceCSSStyleDeclaration- Throws:
DOMException
-
getPropertyValue
DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String).- Specified by:
getPropertyValuein interfaceCSSStyleDeclaration
-
getPropertyCSSValue
DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String).- Specified by:
getPropertyCSSValuein interfaceCSSStyleDeclaration
-
removeProperty
DOM: ImplementsCSSStyleDeclaration.removeProperty(String).- Specified by:
removePropertyin interfaceCSSStyleDeclaration- Throws:
DOMException
-
getPropertyPriority
DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String).- Specified by:
getPropertyPriorityin interfaceCSSStyleDeclaration
-
setProperty
DOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String).- Specified by:
setPropertyin interfaceCSSStyleDeclaration- Throws:
DOMException
-
getLength
public int getLength()DOM: ImplementsCSSStyleDeclaration.getLength().- Specified by:
getLengthin interfaceCSSStyleDeclaration
-
item
DOM: ImplementsCSSStyleDeclaration.item(int).- Specified by:
itemin interfaceCSSStyleDeclaration
-
getParentRule
DOM: ImplementsCSSStyleDeclaration.getParentRule().- Specified by:
getParentRulein interfaceCSSStyleDeclaration- Returns:
- null.
-
createCSSValue
Creates a CSSValue to manage the value at the given index.
-