org.apache.batik.dom.svg

Class SVGOMStyleElement

public class SVGOMStyleElement extends SVGOMElement implements CSSStyleSheetNode, SVGStyleElement, LinkStyle

This class implements {@link SVGStyleElement}.
Nested Class Summary
protected classSVGOMStyleElement.DOMCharacterDataModifiedListener
The DOMCharacterDataModified listener.
Field Summary
protected static AttributeInitializerattributeInitializer
The attribute initializer.
protected EventListenerdomCharacterDataModifiedListener
The listener used to track the content changes.
protected StyleSheetsheet
The style sheet.
protected StyleSheetstyleSheet
The DOM CSS style-sheet.
Constructor Summary
protected SVGOMStyleElement()
Creates a new SVGOMStyleElement object.
SVGOMStyleElement(String prefix, AbstractDocument owner)
Creates a new SVGOMStyleElement object.
Method Summary
protected AttributeInitializergetAttributeInitializer()
Returns the AttributeInitializer for this element type.
StyleSheetgetCSSStyleSheet()
Returns the associated style-sheet.
StringgetLocalName()
DOM: Implements {@link org.w3c.dom.Node#getLocalName()}.
StringgetMedia()
DOM: Implements {@link SVGStyleElement#getMedia()}.
StyleSheetgetSheet()
DOM: Implements {@link org.w3c.dom.stylesheets.LinkStyle#getSheet()}.
StringgetTitle()
DOM: Implements {@link SVGStyleElement#getTitle()}.
StringgetType()
DOM: Implements {@link SVGStyleElement#getType()}.
StringgetXMLspace()
DOM: Implements {@link SVGStyleElement#getXMLspace()}.
protected NodenewNode()
Returns a new uninitialized instance of this object's class.
voidsetMedia(String media)
DOM: Implements {@link SVGStyleElement#setMedia(String)}.
voidsetTitle(String title)
DOM: Implements {@link SVGStyleElement#setTitle(String)}.
voidsetType(String type)
DOM: Implements {@link SVGStyleElement#setType(String)}.
voidsetXMLspace(String space)
DOM: Implements {@link SVGStyleElement#setXMLspace(String)}.

Field Detail

attributeInitializer

protected static final AttributeInitializer attributeInitializer
The attribute initializer.

domCharacterDataModifiedListener

protected transient EventListener domCharacterDataModifiedListener
The listener used to track the content changes.

sheet

protected transient StyleSheet sheet
The style sheet.

styleSheet

protected transient StyleSheet styleSheet
The DOM CSS style-sheet.

Constructor Detail

SVGOMStyleElement

protected SVGOMStyleElement()
Creates a new SVGOMStyleElement object.

SVGOMStyleElement

public SVGOMStyleElement(String prefix, AbstractDocument owner)
Creates a new SVGOMStyleElement object.

Parameters: prefix The namespace prefix. owner The owner document.

Method Detail

getAttributeInitializer

protected AttributeInitializer getAttributeInitializer()
Returns the AttributeInitializer for this element type.

Returns: null if this element has no attribute with a default value.

getCSSStyleSheet

public StyleSheet getCSSStyleSheet()
Returns the associated style-sheet.

getLocalName

public String getLocalName()
DOM: Implements {@link org.w3c.dom.Node#getLocalName()}.

getMedia

public String getMedia()
DOM: Implements {@link SVGStyleElement#getMedia()}.

getSheet

public StyleSheet getSheet()
DOM: Implements {@link org.w3c.dom.stylesheets.LinkStyle#getSheet()}.

getTitle

public String getTitle()
DOM: Implements {@link SVGStyleElement#getTitle()}.

getType

public String getType()
DOM: Implements {@link SVGStyleElement#getType()}.

getXMLspace

public String getXMLspace()
DOM: Implements {@link SVGStyleElement#getXMLspace()}.

newNode

protected Node newNode()
Returns a new uninitialized instance of this object's class.

setMedia

public void setMedia(String media)
DOM: Implements {@link SVGStyleElement#setMedia(String)}.

setTitle

public void setTitle(String title)
DOM: Implements {@link SVGStyleElement#setTitle(String)}.

setType

public void setType(String type)
DOM: Implements {@link SVGStyleElement#setType(String)}.

setXMLspace

public void setXMLspace(String space)
DOM: Implements {@link SVGStyleElement#setXMLspace(String)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.