Package mgui.graphs.networks
Class AbstractNetworkGraphConnection
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.graphs.AbstractGraphEdge
mgui.graphs.networks.AbstractNetworkGraphConnection
- All Implemented Interfaces:
NetworkGraphElement
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,XMLObject
,InterfaceNetworkComponentListener
- Direct Known Subclasses:
CorticalNetworkGraphConnection
public class AbstractNetworkGraphConnection extends AbstractGraphEdge implements InterfaceNetworkComponentListener, NetworkGraphElement
Represents an edge (i.e., a connection) 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.AbstractGraphEdge
from, to, type
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description AbstractNetworkGraphConnection(AbstractNetworkGraphNode from, AbstractNetworkGraphNode to)
-
Method Summary
Modifier and Type Method Description void
addListener(NetworkGraphListener listener)
void
componentUpdated(NetworkComponentEvent e)
protected void
fireListeners()
java.lang.String
getLabel()
java.lang.String
getLocalName()
Returns the local name associated with this XML object.double
getWeight()
void
removeListener(NetworkGraphListener listener)
Methods inherited from class mgui.interfaces.graphs.AbstractGraphEdge
clone, getDTD, getFrom, getShortXML, getTo, getType, getXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, setFromEdge, setFromNodes, setLabel, setType, setVertices, 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
-
AbstractNetworkGraphConnection
-
-
Method Details
-
addListener
-
removeListener
-
componentUpdated
- Specified by:
componentUpdated
in interfaceInterfaceNetworkComponentListener
-
fireListeners
protected void fireListeners() -
getWeight
public double getWeight() -
getLabel
public java.lang.String getLabel()- Overrides:
getLabel
in classAbstractGraphEdge
-
getLocalName
public java.lang.String getLocalName()Description copied from interface:XMLObject
Returns the local name associated with this XML object.- Specified by:
getLocalName
in interfaceXMLObject
- Overrides:
getLocalName
in classAbstractGraphEdge
- Returns:
-