org.apache.batik.css.dom
Class CSSOMViewCSS

java.lang.Object
  |
  +--org.apache.batik.css.dom.CSSOMViewCSS
All Implemented Interfaces:
AbstractView, ViewCSS
Direct Known Subclasses:
CSSOMSVGViewCSS

public class CSSOMViewCSS
extends java.lang.Object
implements ViewCSS

This class represents an object which provides the computed styles of the elements of a document.


Field Summary
protected  CSSEngine cssEngine
          The associated CSS engine.
 
Constructor Summary
CSSOMViewCSS(CSSEngine engine)
          Creates a new ViewCSS.
 
Method Summary
 CSSStyleDeclaration getComputedStyle(Element elt, java.lang.String pseudoElt)
          DOM: Implements ViewCSS.getComputedStyle(Element,String).
 DocumentView getDocument()
          DOM: Implements AbstractView.getDocument().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cssEngine

protected CSSEngine cssEngine
The associated CSS engine.
Constructor Detail

CSSOMViewCSS

public CSSOMViewCSS(CSSEngine engine)
Creates a new ViewCSS.
Method Detail

getDocument

public DocumentView getDocument()
DOM: Implements AbstractView.getDocument().
Specified by:
getDocument in interface AbstractView

getComputedStyle

public CSSStyleDeclaration getComputedStyle(Element elt,
                                            java.lang.String pseudoElt)
DOM: Implements ViewCSS.getComputedStyle(Element,String).
Specified by:
getComputedStyle in interface ViewCSS
Following copied from interface: org.w3c.dom.css.ViewCSS
Parameters:
elt - The element whose style is to be computed. This parameter cannot be null.
pseudoElt - The pseudo-element or null if none.
Returns:
The computed style. The CSSStyleDeclaration is read-only and contains only absolute values.


Copyright © 2002 Apache Software Foundation. All Rights Reserved.