Package mgui.interfaces.graphs
Class DefaultGraphNode
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.graphs.AbstractGraphNode
mgui.interfaces.graphs.DefaultGraphNode
- All Implemented Interfaces:
java.lang.Comparable<AbstractGraphNode>,InterfaceObject,NamedObject,TreeObject,CleanableObject,XMLObject
- Direct Known Subclasses:
NeuralNetNode
public class DefaultGraphNode extends AbstractGraphNode
Default implementation of a Graph in modelGUI.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType -
Field Summary
Fields inherited from class mgui.interfaces.graphs.AbstractGraphNode
current_value, locationFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description DefaultGraphNode()DefaultGraphNode(java.lang.String label) -
Method Summary
Modifier and Type Method Description java.lang.Objectclone()org.apache.commons.collections15.Factory<AbstractGraphNode>getFactory()voidhandleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type)Handles the start of an XML element.Methods inherited from class mgui.interfaces.graphs.AbstractGraphNode
compareTo, getCurrentValue, getDTD, getLabel, getLocalName, getLocation, getShortXML, getXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLString, setCurrentValue, setLabel, setLocation, writeXML, writeXML, writeXMLMethods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode, updateTreeNodesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DefaultGraphNode
public DefaultGraphNode() -
DefaultGraphNode
public DefaultGraphNode(java.lang.String label)
-
-
Method Details
-
getFactory
-
handleXMLElementStart
public void handleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type) throws org.xml.sax.SAXExceptionDescription copied from interface:XMLObjectHandles the start of an XML element.- Specified by:
handleXMLElementStartin interfaceXMLObject- Overrides:
handleXMLElementStartin classAbstractGraphNode- Parameters:
localName- Local name of the elementattributes- Set of element attributestype- TheXMLTypeof this element- Throws:
org.xml.sax.SAXException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classAbstractGraphNode- Throws:
java.lang.CloneNotSupportedException
-