Package mgui.neuro.graphs
Class CorticalNetworkGraphNode
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.graphs.AbstractGraphNode
mgui.graphs.networks.AbstractNetworkGraphNode
mgui.neuro.graphs.CorticalNetworkGraphNode
- All Implemented Interfaces:
java.lang.Comparable<AbstractGraphNode>
,NetworkGraphElement
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,XMLObject
,InterfaceNetworkComponentListener
public class CorticalNetworkGraphNode extends AbstractNetworkGraphNode
-
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 AbstractCorticalRegion
region
Fields inherited from class mgui.graphs.networks.AbstractNetworkGraphNode
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 CorticalNetworkGraphNode(AbstractCorticalRegion region)
-
Method Summary
Modifier and Type Method Description java.lang.String
getLabel()
java.lang.String
getLocalName()
Returns the local name associated with this XML object.AbstractCorticalRegion
getRegion()
double
getWeight(AbstractNetworkGraphNode target)
java.lang.String
getXML()
Returns this object's XML representation as a single string.void
writeXML(int tab, java.io.Writer writer, XMLOutputOptions optionsXMLOutputOptions, ProgressUpdater progress_bar)
Writes the XML representation of this object to file.Methods inherited from class mgui.graphs.networks.AbstractNetworkGraphNode
addListener, componentUpdated, fireListeners, removeListener
Methods inherited from class mgui.interfaces.graphs.AbstractGraphNode
clone, compareTo, getCurrentValue, getDTD, getLocation, getShortXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, setCurrentValue, setLabel, setLocation, 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
-
region
-
-
Constructor Details
-
CorticalNetworkGraphNode
-
-
Method Details
-
getWeight
- Specified by:
getWeight
in classAbstractNetworkGraphNode
-
getRegion
-
getLabel
public java.lang.String getLabel()- Overrides:
getLabel
in classAbstractGraphNode
-
getXML
public java.lang.String getXML()Description copied from interface:XMLObject
Returns this object's XML representation as a single string. NOTE: this is not feasible for larger objects and containers, thus may not be implemented for these objects. Use theXMLObject.writeXML(int,java.io.Writer,mgui.io.standard.xml.XMLOutputOptions,mgui.interfaces.ProgressUpdater)
functions to write larger objects to file.- Specified by:
getXML
in interfaceXMLObject
- Overrides:
getXML
in classAbstractGraphNode
- Returns:
-
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 classAbstractGraphNode
- Returns:
-
writeXML
public void writeXML(int tab, java.io.Writer writer, XMLOutputOptions optionsXMLOutputOptions, ProgressUpdater progress_bar) throws java.io.IOExceptionDescription copied from interface:XMLObject
Writes the XML representation of this object to file. The basic contract for this method is that it should not write a newline character at its start or end. The default format ofXMLFormat.Ascii
will be used.- Specified by:
writeXML
in interfaceXMLObject
- Overrides:
writeXML
in classAbstractGraphNode
- Parameters:
tab
- The number of tabs to place before the XML textwriter
- The writeroptionsXMLOutputOptions
- XMLOutputOptions defining the write parametersprogress_bar
- Optional progress updater (may benull
)- Throws:
java.io.IOException
-