org.wilmascope.file
Class XMLGraph.XMLGraphElement
java.lang.Object
org.wilmascope.file.XMLGraph.XMLGraphElement
- Direct Known Subclasses:
- XMLGraph.Edge, XMLGraph.LayoutEngineType, XMLGraph.Node, XMLGraph.Property, XMLGraph.ViewType
- Enclosing class:
- XMLGraph
public abstract class XMLGraph.XMLGraphElement
- extends java.lang.Object
- Author:
- dwyer
An abstract wrapper for the underlying DOM element that we inherit in our
wrappers for the various Graph elements
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLGraph.XMLGraphElement
protected XMLGraph.XMLGraphElement(java.lang.String name)
XMLGraph.XMLGraphElement
protected XMLGraph.XMLGraphElement(org.w3c.dom.Element element)
getElement
protected org.w3c.dom.Element getElement()
setAttribute
protected void setAttribute(java.lang.String attribute,
java.lang.String value)
setAttribute
protected void setAttribute(java.lang.String attribute,
float value)
getAttribute
protected java.lang.String getAttribute(java.lang.String attribute)
getFloatAttribute
protected float getFloatAttribute(java.lang.String attribute)
createElement
protected void createElement(java.lang.String name)
getChildNodes
protected org.w3c.dom.NodeList getChildNodes()
appendChild
protected void appendChild(XMLGraph.XMLGraphElement child)
getChildElements
protected org.w3c.dom.Element[] getChildElements(java.lang.String tag)
- get array of Elements matching the tag name
- Parameters:
tag
- element tag to match
- Returns:
- an array of Elements matching the tag
getProperties
protected java.util.Properties getProperties()
getViewType
protected XMLGraph.ViewType getViewType()
setViewType
public XMLGraph.ViewType setViewType(java.lang.String type)
setProperties
public void setProperties(java.util.Properties ps)