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, location
Fields 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.Object
clone()
org.apache.commons.collections15.Factory<AbstractGraphNode>
getFactory()
void
handleXMLElementStart(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, writeXML
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode, updateTreeNodes
Methods 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:XMLObject
Handles the start of an XML element.- Specified by:
handleXMLElementStart
in interfaceXMLObject
- Overrides:
handleXMLElementStart
in classAbstractGraphNode
- Parameters:
localName
- Local name of the elementattributes
- Set of element attributestype
- TheXMLType
of this element- Throws:
org.xml.sax.SAXException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clone
in classAbstractGraphNode
- Throws:
java.lang.CloneNotSupportedException
-