Package org.apache.batik.css.dom
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 TypeClassDescriptionclass
To manage a computed CSSValue. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CSSEngine
The CSS engine used to compute the values.protected CSSStylableElement
The associated element.protected String
The optional pseudo-element.protected Map
The CSS values. -
Constructor Summary
ConstructorsConstructorDescriptionCSSOMComputedStyle
(CSSEngine e, CSSStylableElement elt, String pseudoElt) Creates a new computed style. -
Method Summary
Modifier and TypeMethodDescriptionprotected CSSValue
createCSSValue
(int idx) Creates a CSSValue to manage the value at the given index.DOM: ImplementsCSSStyleDeclaration.getCssText()
.int
DOM: 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)
.void
setCssText
(String cssText) DOM: ImplementsCSSStyleDeclaration.setCssText(String)
.void
setProperty
(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:
getCssText
in interfaceCSSStyleDeclaration
-
setCssText
DOM: ImplementsCSSStyleDeclaration.setCssText(String)
. Throws a NO_MODIFICATION_ALLOWED_ERRDOMException
.- Specified by:
setCssText
in interfaceCSSStyleDeclaration
- Throws:
DOMException
-
getPropertyValue
DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String)
.- Specified by:
getPropertyValue
in interfaceCSSStyleDeclaration
-
getPropertyCSSValue
DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String)
.- Specified by:
getPropertyCSSValue
in interfaceCSSStyleDeclaration
-
removeProperty
DOM: ImplementsCSSStyleDeclaration.removeProperty(String)
.- Specified by:
removeProperty
in interfaceCSSStyleDeclaration
- Throws:
DOMException
-
getPropertyPriority
DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String)
.- Specified by:
getPropertyPriority
in interfaceCSSStyleDeclaration
-
setProperty
DOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String)
.- Specified by:
setProperty
in interfaceCSSStyleDeclaration
- Throws:
DOMException
-
getLength
public int getLength()DOM: ImplementsCSSStyleDeclaration.getLength()
.- Specified by:
getLength
in interfaceCSSStyleDeclaration
-
item
DOM: ImplementsCSSStyleDeclaration.item(int)
.- Specified by:
item
in interfaceCSSStyleDeclaration
-
getParentRule
DOM: ImplementsCSSStyleDeclaration.getParentRule()
.- Specified by:
getParentRule
in interfaceCSSStyleDeclaration
- Returns:
- null.
-
createCSSValue
Creates a CSSValue to manage the value at the given index.
-