org.apache.batik.extension
Class StylableExtensionElement

java.lang.Object
  |
  +--org.apache.batik.dom.AbstractNode
        |
        +--org.apache.batik.dom.AbstractParentNode
              |
              +--org.apache.batik.dom.AbstractParentChildNode
                    |
                    +--org.apache.batik.dom.AbstractElement
                          |
                          +--org.apache.batik.dom.svg.AbstractElement
                                |
                                +--org.apache.batik.extension.ExtensionElement
                                      |
                                      +--org.apache.batik.extension.StylableExtensionElement
All Implemented Interfaces:
Element, ElementCSSInlineStyle, ElementNonCSSPresentationalHints, ElementWithBaseURI, ElementWithID, ElementWithPseudoClass, EventTarget, ExtendedElementCSSInlineStyle, ExtendedNode, HiddenChildElement, Node, NodeEventTarget, OverrideStyleElement, java.io.Serializable
Direct Known Subclasses:
PrefixableStylableExtensionElement

public abstract class StylableExtensionElement
extends ExtensionElement
implements OverrideStyleElement, ExtendedElementCSSInlineStyle, ElementNonCSSPresentationalHints

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", ...).

See Also:
Serialized Form

Inner classes inherited from class org.apache.batik.dom.svg.AbstractElement
AbstractElement.ExtendedNamedNodeHashMap
 
Inner classes inherited from class org.apache.batik.dom.AbstractElement
AbstractElement.Entry, AbstractElement.NamedNodeHashMap
 
Inner classes inherited from class org.apache.batik.dom.AbstractParentNode
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName
 
Field Summary
protected  SVGStylableSupport stylableSupport
          The stylable support.
 
Fields inherited from class org.apache.batik.dom.svg.AbstractElement
liveAttributeValues, parentElement, styleDeclaration
 
Fields inherited from class org.apache.batik.dom.AbstractElement
attributes
 
Fields inherited from class org.apache.batik.dom.AbstractParentChildNode
nextSibling, parentNode, previousSibling
 
Fields inherited from class org.apache.batik.dom.AbstractParentNode
childNodes
 
Fields inherited from class org.apache.batik.dom.AbstractNode
EMPTY_NODE_LIST, eventSupport, ownerDocument
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
protected StylableExtensionElement()
          Creates a new Element object.
protected StylableExtensionElement(java.lang.String name, AbstractDocument owner)
          Creates a new Element object.
 
Method Summary
 CSSStyleDeclaration getNonCSSPresentationalHints()
          Returns the translation of the non-CSS hints to the corresponding CSS rules.
 CSSStyleDeclaration getOverrideStyle(java.lang.String pseudoElt)
          Implements OverrideStyleElement.getOverrideStyle(String).
protected  SVGStylableSupport getStylableSupport()
          Returns stylableSupport different from null.
 CSSStyleDeclaration getStyle()
          DOM: Implements SVGStylable.getStyle().
 boolean hasOverrideStyle(java.lang.String pseudoElt)
          Implements OverrideStyleElement.hasOverrideStyle(String).
 boolean hasStyle()
          Implements ExtendedElementCSSInlineStyle.hasStyle().
 
Methods inherited from class org.apache.batik.extension.ExtensionElement
isReadonly, setReadonly
 
Methods inherited from class org.apache.batik.dom.svg.AbstractElement
attrAdded, attrModified, attrRemoved, createAttributes, getAttributeInitializer, getBaseURI, getID, getLiveAttributeValue, getParentElement, getParentNodeEventTarget, getStyleDeclaration, initializeAttributes, matchPseudoClass, putLiveAttributeValue, resetAttribute, setIDName, setParentElement, setStyleDeclaration, setUnspecifiedAttribute
 
Methods inherited from class org.apache.batik.dom.AbstractElement
checkChildType, copyInto, deepCopyInto, deepExport, export, fireDOMAttrModifiedEvent, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getNodeType, getTagName, hasAttribute, hasAttributeNS, hasAttributes, nodeAdded, nodeToBeRemoved, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from class org.apache.batik.dom.AbstractParentChildNode
getNextSibling, getParentNode, getPreviousSibling, setNextSibling, setParentNode, setPreviousSibling
 
Methods inherited from class org.apache.batik.dom.AbstractParentNode
appendChild, checkAndRemove, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, hasChildNodes, insertBefore, removeChild, replaceChild
 
Methods inherited from class org.apache.batik.dom.AbstractNode
addEventListener, cloneNode, createDOMException, dispatchEvent, fireDOMCharacterDataModifiedEvent, getCurrentDocument, getEventSupport, getLocalName, getNamespaceURI, getNodeValue, getOwnerDocument, getPrefix, isSupported, newNode, removeEventListener, setNodeName, setNodeValue, setOwnerDocument, setPrefix, setSpecified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Element
getElementsByTagName, getElementsByTagNameNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, isSupported, removeChild, replaceChild, setNodeValue, setPrefix
 

Field Detail

stylableSupport

protected SVGStylableSupport stylableSupport
The stylable support.
Constructor Detail

StylableExtensionElement

protected StylableExtensionElement()
Creates a new Element object.

StylableExtensionElement

protected StylableExtensionElement(java.lang.String name,
                                   AbstractDocument owner)
Creates a new Element object.
Parameters:
name - The element name, for validation purposes.
owner - The owner document.
Method Detail

getStylableSupport

protected final SVGStylableSupport getStylableSupport()
Returns stylableSupport different from null.

hasStyle

public boolean hasStyle()
Implements ExtendedElementCSSInlineStyle.hasStyle().
Specified by:
hasStyle in interface ExtendedElementCSSInlineStyle

getStyle

public CSSStyleDeclaration getStyle()
DOM: Implements SVGStylable.getStyle().
Specified by:
getStyle in interface ElementCSSInlineStyle

hasOverrideStyle

public boolean hasOverrideStyle(java.lang.String pseudoElt)
Implements OverrideStyleElement.hasOverrideStyle(String).
Specified by:
hasOverrideStyle in interface OverrideStyleElement

getOverrideStyle

public CSSStyleDeclaration getOverrideStyle(java.lang.String pseudoElt)
Implements OverrideStyleElement.getOverrideStyle(String).
Specified by:
getOverrideStyle in interface OverrideStyleElement
Following copied from interface: org.apache.batik.dom.util.OverrideStyleElement
Parameters:
pseudoElt - The pseudo element or null if none.
Returns:
The override style declaration.

getNonCSSPresentationalHints

public CSSStyleDeclaration getNonCSSPresentationalHints()
Returns the translation of the non-CSS hints to the corresponding CSS rules. The result can be null.
Specified by:
getNonCSSPresentationalHints in interface ElementNonCSSPresentationalHints


Copyright © 2001 Apache Software Foundation. All Rights Reserved.