|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.SVGOMElement
This class implements the SVGElement
interface.
Inner Class Summary | |
protected class |
SVGOMElement.SVGNamedNodeHashMap
An implementation of the NamedNodeMap . |
Inner classes inherited from class org.apache.batik.dom.AbstractElement |
AbstractElement.NamedNodeHashMap |
Inner classes inherited from class org.apache.batik.dom.AbstractParentNode |
AbstractParentNode.ChildNodes, AbstractParentNode.Nodes |
Field Summary | |
protected static java.lang.String |
ID_NAME
The element ID attribute name. |
protected java.util.Map |
liveAttributeValues
The live attribute values map. |
protected Element |
parentElement
The parent element. |
protected java.lang.String |
prefix
The element prefix. |
protected boolean |
readonly
Is this element immutable? |
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 |
SVGOMElement()
Creates a new Element object. |
protected |
SVGOMElement(java.lang.String prefix,
AbstractDocument owner)
Creates a new Element object. |
Method Summary | |
protected Node |
copyInto(Node n)
Copy the fields of the current node into the given node. |
protected NamedNodeMap |
createAttributes()
Creates the attribute list. |
protected Node |
deepCopyInto(Node n)
Deeply copy the fields of the current node into the given node. |
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. |
protected java.util.Map |
getDefaultAttributeValues()
Returns the default attribute values in a map. |
java.lang.String |
getId()
DOM: Implements SVGElement.getId() . |
java.lang.String |
getID()
Returns the ID of this element or the empty string. |
java.lang.String |
getNamespaceURI()
DOM: Implements Node.getNamespaceURI() . |
java.lang.String |
getNodeName()
DOM: Implements Node.getNodeName() . |
SVGSVGElement |
getOwnerSVGElement()
DOM: Implements SVGElement.getOwnerSVGElement() . |
Element |
getParentElement()
The parent element of this element. |
NodeEventTarget |
getParentNodeEventTarget()
Implements NodeEventTarget.getParentNodeEventTarget() . |
SVGElement |
getViewportElement()
DOM: Implements SVGElement.getViewportElement() . |
protected void |
initializeAttributes()
Initializes the attributes of this element to their default value. |
boolean |
isReadonly()
Tests whether this node is readonly. |
boolean |
matchPseudoClass(java.lang.String pseudoClass)
Whether this element matches the given pseudo-class. |
protected void |
putLiveAttributeValue(java.lang.String nsURI,
java.lang.String attr,
LiveAttributeValue lav)
Puts a live attribute value into the table. |
protected boolean |
resetAttribute(java.lang.String nsURI,
java.lang.String name)
Resets an attribute to the default value. |
protected void |
setDefaultAttributeValue(java.lang.Object nsURI,
java.lang.Object name,
java.lang.Object value)
An auxiliary method for initializeAttributes() and resetAttribute(). |
void |
setId(java.lang.String id)
DOM: Implements SVGElement.setId(String) . |
void |
setIDName(java.lang.String uri,
java.lang.String s)
Sets the element ID attribute name. |
void |
setParentElement(Element elt)
Sets the parent element. |
void |
setPrefix(java.lang.String prefix)
DOM: Implements Node.setPrefix(String) . |
void |
setReadonly(boolean v)
Sets this node readonly 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, getFirstChild, getLastChild, hasChildNodes, insertBefore, removeChild, replaceChild |
Methods inherited from class org.apache.batik.dom.AbstractNode |
addEventListener, cloneNode, createDOMException, dispatchEvent, fireDOMCharacterDataModifiedEvent, getCurrentDocument, getEventSupport, getLocalName, getNodeValue, getOwnerDocument, getPrefix, isSupported, removeEventListener, setNodeName, setNodeValue, setOwnerDocument, 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 |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue |
Field Detail |
protected static final java.lang.String ID_NAME
protected boolean readonly
protected java.lang.String prefix
protected java.util.Map liveAttributeValues
protected Element parentElement
Constructor Detail |
protected SVGOMElement()
protected SVGOMElement(java.lang.String prefix, AbstractDocument owner)
prefix
- The namespace prefix.owner
- The owner document.Method Detail |
public NodeEventTarget getParentNodeEventTarget()
NodeEventTarget.getParentNodeEventTarget()
.getParentNodeEventTarget
in class AbstractNode
public Element getParentElement()
getParentElement
in interface HiddenChildElement
public void setParentElement(Element elt)
setParentElement
in interface HiddenChildElement
public java.lang.String getId()
SVGElement.getId()
.getId
in interface SVGElement
public void setId(java.lang.String id)
SVGElement.setId(String)
.setId
in interface SVGElement
public SVGSVGElement getOwnerSVGElement()
SVGElement.getOwnerSVGElement()
.getOwnerSVGElement
in interface SVGElement
public SVGElement getViewportElement()
SVGElement.getViewportElement()
.getViewportElement
in interface SVGElement
public java.lang.String getNodeName()
Node.getNodeName()
.getNodeName
in interface Node
public java.lang.String getNamespaceURI()
Node.getNamespaceURI()
.getNamespaceURI
in interface Node
getNamespaceURI
in class AbstractNode
org.apache.batik.dom.AbstractNode
public void setPrefix(java.lang.String prefix) throws DOMException
Node.setPrefix(String)
.setPrefix
in interface Node
setPrefix
in class AbstractNode
public boolean isReadonly()
public void setReadonly(boolean v)
public void setIDName(java.lang.String uri, java.lang.String s)
setIDName
in interface ElementWithID
uri
- The namespace uri.s
- The attribute local name.public java.lang.String getID()
getID
in interface ElementWithID
public boolean matchPseudoClass(java.lang.String pseudoClass)
matchPseudoClass
in interface ElementWithPseudoClass
protected NamedNodeMap createAttributes()
createAttributes
in class AbstractElement
protected Node export(Node n, AbstractDocument d)
export
in class AbstractElement
org.apache.batik.dom.AbstractElement
n
- The clone node.d
- The destination document.protected Node deepExport(Node n, AbstractDocument d)
deepExport
in class AbstractElement
org.apache.batik.dom.AbstractElement
n
- The clone node.d
- The destination document.protected Node copyInto(Node n)
copyInto
in class AbstractElement
n
- a node of the type of this.protected Node deepCopyInto(Node n)
deepCopyInto
in class AbstractElement
n
- a node of the type of this.protected boolean resetAttribute(java.lang.String nsURI, java.lang.String name)
protected java.util.Map getDefaultAttributeValues()
protected void initializeAttributes()
protected void setDefaultAttributeValue(java.lang.Object nsURI, java.lang.Object name, java.lang.Object value)
protected void putLiveAttributeValue(java.lang.String nsURI, java.lang.String attr, LiveAttributeValue lav)
nsURI
- The attribute namespace uri.attr
- The attribute name.lav
- The LiveAttributeValue object to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |