org.apache.batik.dom

Class AbstractStylableDocument

public abstract class AbstractStylableDocument extends AbstractDocument implements DocumentCSS, DocumentView

A Document that supports CSS styling.
Field Summary
protected CSSEnginecssEngine
The CSS engine.
protected AbstractViewdefaultView
The default view.
Constructor Summary
protected AbstractStylableDocument()
protected AbstractStylableDocument(DocumentType dt, DOMImplementation impl)
Creates a new document.
Method Summary
voidclearViewCSS()
Clears the view CSS.
CSSEnginegetCSSEngine()
Returns the CSS engine.
AbstractViewgetDefaultView()
DOM: Implements {@link DocumentView#getDefaultView()}.
CSSStyleDeclarationgetOverrideStyle(Element elt, String pseudoElt)
DOM: Implements {@link DocumentCSS#getOverrideStyle(Element,String)}.
StyleSheetListgetStyleSheets()
DOM: Implements {@link org.w3c.dom.stylesheets.DocumentStyle#getStyleSheets()}.
voidsetCSSEngine(CSSEngine ctx)
Sets the CSS engine.

Field Detail

cssEngine

protected transient CSSEngine cssEngine
The CSS engine.

defaultView

protected transient AbstractView defaultView
The default view.

Constructor Detail

AbstractStylableDocument

protected AbstractStylableDocument()

AbstractStylableDocument

protected AbstractStylableDocument(DocumentType dt, DOMImplementation impl)
Creates a new document.

Method Detail

clearViewCSS

public void clearViewCSS()
Clears the view CSS.

getCSSEngine

public CSSEngine getCSSEngine()
Returns the CSS engine.

getDefaultView

public AbstractView getDefaultView()
DOM: Implements {@link DocumentView#getDefaultView()}.

Returns: a ViewCSS object.

getOverrideStyle

public CSSStyleDeclaration getOverrideStyle(Element elt, String pseudoElt)
DOM: Implements {@link DocumentCSS#getOverrideStyle(Element,String)}.

getStyleSheets

public StyleSheetList getStyleSheets()
DOM: Implements {@link org.w3c.dom.stylesheets.DocumentStyle#getStyleSheets()}.

setCSSEngine

public void setCSSEngine(CSSEngine ctx)
Sets the CSS engine.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.