org.apache.batik.extension

Class StylableExtensionElement

public abstract class StylableExtensionElement extends ExtensionElement implements CSSStylableElement, SVGStylable

This class implements the basic features an element must have in order to be usable as a foreign element within an SVGOMDocument, and the support for both the 'style' attribute and the style attributes (ie: fill="red", ...).
Field Summary
protected StyleMapcomputedStyleMap
The computed style map.
protected ParsedURLcssBase
The base URL.
Constructor Summary
protected StylableExtensionElement()
Creates a new Element object.
protected StylableExtensionElement(String name, AbstractDocument owner)
Creates a new Element object.
Method Summary
SVGAnimatedStringgetClassName()
DOM: Implements org.w3c.dom.svg.SVGStylable#getClassName().
StyleMapgetComputedStyleMap(String pseudoElement)
Returns the computed style of this element/pseudo-element.
ParsedURLgetCSSBase()
Returns the CSS base URL of this element.
StringgetCSSClass()
Returns the class of this element.
StyleDeclarationProvidergetOverrideStyleDeclarationProvider()
Returns the object that gives access to the underlying StyleDeclaration for the override style of this element.
CSSValuegetPresentationAttribute(String name)
DOM: Implements org.w3c.dom.svg.SVGStylable#getPresentationAttribute(String).
CSSStyleDeclarationgetStyle()
DOM: Implements org.w3c.dom.svg.SVGStylable#getStyle().
StringgetXMLId()
Returns the ID of this element.
booleanisPseudoInstanceOf(String pseudoClass)
Tells whether this element is an instance of the given pseudo class.
voidsetComputedStyleMap(String pseudoElement, StyleMap sm)
Sets the computed style of this element/pseudo-element.

Field Detail

computedStyleMap

protected StyleMap computedStyleMap
The computed style map.

cssBase

protected ParsedURL cssBase
The base URL.

Constructor Detail

StylableExtensionElement

protected StylableExtensionElement()
Creates a new Element object.

StylableExtensionElement

protected StylableExtensionElement(String name, AbstractDocument owner)
Creates a new Element object.

Parameters: name The element name, for validation purposes. owner The owner document.

Method Detail

getClassName

public SVGAnimatedString getClassName()
DOM: Implements org.w3c.dom.svg.SVGStylable#getClassName().

getComputedStyleMap

public StyleMap getComputedStyleMap(String pseudoElement)
Returns the computed style of this element/pseudo-element.

getCSSBase

public ParsedURL getCSSBase()
Returns the CSS base URL of this element.

getCSSClass

public String getCSSClass()
Returns the class of this element.

getOverrideStyleDeclarationProvider

public StyleDeclarationProvider getOverrideStyleDeclarationProvider()
Returns the object that gives access to the underlying StyleDeclaration for the override style of this element.

getPresentationAttribute

public CSSValue getPresentationAttribute(String name)
DOM: Implements org.w3c.dom.svg.SVGStylable#getPresentationAttribute(String).

getStyle

public CSSStyleDeclaration getStyle()
DOM: Implements org.w3c.dom.svg.SVGStylable#getStyle().

getXMLId

public String getXMLId()
Returns the ID of this element.

isPseudoInstanceOf

public boolean isPseudoInstanceOf(String pseudoClass)
Tells whether this element is an instance of the given pseudo class.

setComputedStyleMap

public void setComputedStyleMap(String pseudoElement, StyleMap sm)
Sets the computed style of this element/pseudo-element.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.