Package org.apache.batik.css.dom
Class CSSOMComputedStyle
java.lang.Object
org.apache.batik.css.dom.CSSOMComputedStyle
- All Implemented Interfaces:
org.w3c.dom.css.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 org.w3c.dom.css.CSSValue
createCSSValue
(int idx) Creates a CSSValue to manage the value at the given index.DOM: ImplementsCSSStyleDeclaration.getCssText()
.int
DOM: ImplementsCSSStyleDeclaration.getLength()
.org.w3c.dom.css.CSSRule
DOM: ImplementsCSSStyleDeclaration.getParentRule()
.org.w3c.dom.css.CSSValue
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 interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setCssText
DOM: ImplementsCSSStyleDeclaration.setCssText(String)
. Throws a NO_MODIFICATION_ALLOWED_ERRDOMException
.- Specified by:
setCssText
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
DOMException
-
getPropertyValue
DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String)
.- Specified by:
getPropertyValue
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getPropertyCSSValue
DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String)
.- Specified by:
getPropertyCSSValue
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
removeProperty
DOM: ImplementsCSSStyleDeclaration.removeProperty(String)
.- Specified by:
removeProperty
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
DOMException
-
getPropertyPriority
DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String)
.- Specified by:
getPropertyPriority
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setProperty
DOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String)
.- Specified by:
setProperty
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
DOMException
-
getLength
public int getLength()DOM: ImplementsCSSStyleDeclaration.getLength()
.- Specified by:
getLength
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
item
DOM: ImplementsCSSStyleDeclaration.item(int)
.- Specified by:
item
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getParentRule
public org.w3c.dom.css.CSSRule getParentRule()DOM: ImplementsCSSStyleDeclaration.getParentRule()
.- Specified by:
getParentRule
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Returns:
- null.
-
createCSSValue
protected org.w3c.dom.css.CSSValue createCSSValue(int idx) Creates a CSSValue to manage the value at the given index.
-