Package mgui.graphs.networks
Class AbstractNetworkGraphNode
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.graphs.AbstractGraphNode
mgui.graphs.networks.AbstractNetworkGraphNode
- All Implemented Interfaces:
java.lang.Comparable<AbstractGraphNode>
,NetworkGraphElement
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,XMLObject
,InterfaceNetworkComponentListener
- Direct Known Subclasses:
CorticalNetworkGraphNode
public abstract class AbstractNetworkGraphNode extends AbstractGraphNode implements InterfaceNetworkComponentListener, NetworkGraphElement
Represents a node in a network graph.
- 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 Modifier and Type Field Description protected java.util.ArrayList<NetworkGraphListener>
listeners
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 AbstractNetworkGraphNode()
-
Method Summary
Modifier and Type Method Description void
addListener(NetworkGraphListener listener)
void
componentUpdated(NetworkComponentEvent e)
protected void
fireListeners()
abstract double
getWeight(AbstractNetworkGraphNode target)
void
removeListener(NetworkGraphListener listener)
Methods inherited from class mgui.interfaces.graphs.AbstractGraphNode
clone, compareTo, getCurrentValue, getDTD, getLabel, getLocalName, getLocation, getShortXML, getXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, 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
-
Field Details
-
listeners
-
-
Constructor Details
-
AbstractNetworkGraphNode
public AbstractNetworkGraphNode()
-
-
Method Details
-
addListener
-
removeListener
-
componentUpdated
- Specified by:
componentUpdated
in interfaceInterfaceNetworkComponentListener
-
fireListeners
protected void fireListeners() -
getWeight
-