|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractParentChildNode
org.apache.batik.dom.AbstractElement
org.apache.batik.anim.dom.AbstractElement
public abstract class AbstractElement
This class provides a superclass to implement an SVG element, or an element interoperable with the SVG elements.
| Nested Class Summary | |
|---|---|
protected class |
AbstractElement.ExtendedNamedNodeHashMap
An implementation of the NamedNodeMap. |
| Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractElement |
|---|
AbstractElement.ElementTypeInfo, AbstractElement.Entry, AbstractElement.NamedNodeHashMap |
| Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
| Field Summary | |
|---|---|
protected DoublyIndexedTable |
liveAttributeValues
The live attribute values. |
| Fields inherited from class org.apache.batik.dom.AbstractElement |
|---|
attributes, typeInfo |
| 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 |
|---|
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlers |
| Constructor Summary | |
|---|---|
protected |
AbstractElement()
Creates a new Element object. |
protected |
AbstractElement(String prefix,
AbstractDocument owner)
Creates a new Element object. |
| Method Summary | |
|---|---|
protected void |
attrAdded(Attr node,
String newv)
Called when an attribute has been added. |
protected void |
attrModified(Attr node,
String oldv,
String newv)
Called when an attribute has been modified. |
protected void |
attrRemoved(Attr node,
String oldv)
Called when an attribute has been removed. |
protected NamedNodeMap |
createAttributes()
Creates the attribute list. |
protected Node |
deepExport(Node n,
AbstractDocument d)
Deeply exports this node to the given document. |
protected Node |
export(Node n,
AbstractDocument d)
Exports this node to the given document. |
void |
fireDOMAttrModifiedEvent(String name,
Attr node,
String oldv,
String newv,
short change)
|
protected AttributeInitializer |
getAttributeInitializer()
Returns the AttributeInitializer for this element type. |
Node |
getCSSFirstChild()
Returns the CSS first child node of this node. |
Node |
getCSSLastChild()
Returns the CSS last child of this node. |
Node |
getCSSNextSibling()
Returns the CSS next sibling node of this node. |
Node |
getCSSParentNode()
Returns the CSS parent node of this node. |
Node |
getCSSPreviousSibling()
Returns the CSS previous sibling node of this node. |
LiveAttributeValue |
getLiveAttributeValue(String ns,
String ln)
Returns the live attribute value associated with given attribute, if any. |
protected void |
initializeAttributes()
Initializes the attributes of this element to their default value. |
boolean |
isHiddenFromSelectors()
Returns whether this node is the root of a (conceptual) hidden tree that selectors will not work across. |
void |
putLiveAttributeValue(String ns,
String ln,
LiveAttributeValue val)
Associates a live attribute value to this element. |
protected boolean |
resetAttribute(String ns,
String prefix,
String ln)
Resets an attribute to the default value. |
void |
setUnspecifiedAttribute(String nsURI,
String name,
String value)
Sets an unspecified attribute. |
| 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, getTextContent, hasChildNodes, insertBefore, removeChild, replaceChild |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.batik.dom.events.NodeEventTarget |
|---|
addEventListenerNS, dispatchEvent, getEventSupport, getParentNodeEventTarget, removeEventListenerNS |
| Methods inherited from interface org.w3c.dom.events.EventTarget |
|---|
addEventListener, removeEventListener |
| Methods inherited from interface org.w3c.dom.Element |
|---|
getElementsByTagName, getElementsByTagNameNS |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Methods inherited from interface org.apache.batik.dom.ExtendedNode |
|---|
isReadonly, setReadonly |
| Field Detail |
|---|
protected transient DoublyIndexedTable liveAttributeValues
| Constructor Detail |
|---|
protected AbstractElement()
protected AbstractElement(String prefix,
AbstractDocument owner)
prefix - The namespace prefix.owner - The owner document.| Method Detail |
|---|
public Node getCSSParentNode()
getCSSParentNode in interface CSSNavigableNodepublic Node getCSSPreviousSibling()
getCSSPreviousSibling in interface CSSNavigableNodepublic Node getCSSNextSibling()
getCSSNextSibling in interface CSSNavigableNodepublic Node getCSSFirstChild()
getCSSFirstChild in interface CSSNavigableNodepublic Node getCSSLastChild()
getCSSLastChild in interface CSSNavigableNodepublic boolean isHiddenFromSelectors()
isHiddenFromSelectors in interface CSSNavigableNode
public void fireDOMAttrModifiedEvent(String name,
Attr node,
String oldv,
String newv,
short change)
fireDOMAttrModifiedEvent in class AbstractElement
public LiveAttributeValue getLiveAttributeValue(String ns,
String ln)
ns - The attribute's namespace.ln - The attribute's local name.
public void putLiveAttributeValue(String ns,
String ln,
LiveAttributeValue val)
ns - The attribute's namespace.ln - The attribute's local name.val - The live value.protected AttributeInitializer getAttributeInitializer()
protected void initializeAttributes()
protected boolean resetAttribute(String ns,
String prefix,
String ln)
protected NamedNodeMap createAttributes()
createAttributes in class AbstractElement
public void setUnspecifiedAttribute(String nsURI,
String name,
String value)
nsURI - The attribute namespace URI.name - The attribute's qualified name.value - The attribute's default value.
protected void attrAdded(Attr node,
String newv)
attrAdded in class AbstractElement
protected void attrModified(Attr node,
String oldv,
String newv)
attrModified in class AbstractElement
protected void attrRemoved(Attr node,
String oldv)
attrRemoved in class AbstractElement
protected Node export(Node n,
AbstractDocument d)
export in class AbstractElement
protected Node deepExport(Node n,
AbstractDocument d)
deepExport in class AbstractElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||