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>listenersFields inherited from class mgui.interfaces.graphs.AbstractGraphNode
current_value, locationFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description AbstractNetworkGraphNode() -
Method Summary
Modifier and Type Method Description voidaddListener(NetworkGraphListener listener)voidcomponentUpdated(NetworkComponentEvent e)protected voidfireListeners()abstract doublegetWeight(AbstractNetworkGraphNode target)voidremoveListener(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, 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
-
Field Details
-
listeners
-
-
Constructor Details
-
AbstractNetworkGraphNode
public AbstractNetworkGraphNode()
-
-
Method Details
-
addListener
-
removeListener
-
componentUpdated
- Specified by:
componentUpdatedin interfaceInterfaceNetworkComponentListener
-
fireListeners
protected void fireListeners() -
getWeight
-