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
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 |
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.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.Node |
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, isSupported, removeChild, replaceChild, setNodeValue, setPrefix |
stylableSupport
protected SVGStylableSupport stylableSupport
- The stylable support.
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.
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.