Package network.aika.debugger
Class AbstractLayout<G extends AbstractGraphManager>
java.lang.Object
org.graphstream.stream.SourceBase
org.graphstream.ui.layout.springbox.BarnesHutLayout
org.graphstream.ui.layout.springbox.implementations.SpringBox
network.aika.debugger.AbstractLayout<G>
- All Implemented Interfaces:
org.graphstream.stream.AttributeSink,org.graphstream.stream.ElementSink,org.graphstream.stream.Pipe,org.graphstream.stream.Sink,org.graphstream.stream.Source,org.graphstream.ui.layout.Layout,org.miv.pherd.ParticleBoxListener
- Direct Known Subclasses:
ActivationLayout,NeuronLayout
public abstract class AbstractLayout<G extends AbstractGraphManager>
extends org.graphstream.ui.layout.springbox.implementations.SpringBox
- Author:
- Lukas Molzberger
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graphstream.stream.SourceBase
org.graphstream.stream.SourceBase.ElementType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Gprotected static doubleprotected static doubleprotected static doublestatic doublestatic doubleFields inherited from class org.graphstream.ui.layout.springbox.implementations.SpringBox
K1, K2Fields inherited from class org.graphstream.ui.layout.springbox.BarnesHutLayout
area, avgLength, center, edges, energies, force, gravity, hi, is3D, lastElementCount, lastStepTime, lo, maxMoveLength, nodeMoveCount, nodes, nodesPerCell, outputNodeStats, outputStats, quality, random, sendMoveEventsEvery, sendNodeInfos, sinkTime, stabilizationLimit, statsOut, theta, time, viewZoneFields inherited from class org.graphstream.stream.SourceBase
attrSinks, eltsSinks, eventProcessing, eventQueue, sourceId, sourceTime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchooseNodePosition(org.graphstream.ui.layout.springbox.NodeParticle n0, org.graphstream.ui.layout.springbox.NodeParticle n1) voidparticleMoved(Object id, double x, double y, double z) Methods inherited from class org.graphstream.ui.layout.springbox.implementations.SpringBox
newNodeParticle, setQualityMethods inherited from class org.graphstream.ui.layout.springbox.BarnesHutLayout
addEdge, addEdgeBreakPoint, addNode, clear, compute, computeArea, edgeAdded, edgeAttributeAdded, edgeAttributeChanged, edgeAttributeChanged_, edgeAttributeRemoved, edgeRemoved, freezeNode, getBarnesHutTheta, getCenterPoint, getEnergies, getForce, getGravityFactor, getHiPoint, getLastStepTime, getLowPoint, getNodeMovedCount, getQuality, getRandom, getSpatialIndex, getStabilization, getStabilizationLimit, getSteps, getViewZone, graphAttributeAdded, graphAttributeChanged, graphAttributeChanged_, graphAttributeRemoved, graphCleared, ignoreEdge, is3D, moveNode, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeChanged_, nodeAttributeRemoved, nodeRemoved, particleAdded, particleAdded, particleAttributeChanged, particleMarked, particleRemoved, printStats, randomXInsideBounds, randomYInsideBounds, randomZInsideBounds, removeEdge, removeNode, setBarnesHutTheta, setEdgeWeight, setForce, setGravityFactor, setNodeWeight, setSendNodeInfos, setStabilizationLimit, shake, stepBegins, stepFinishedMethods inherited from class org.graphstream.stream.SourceBase
addAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, manageEvents, removeAttributeSink, removeElementSink, removeSink, sendAttributeChangedEvent, sendAttributeChangedEvent, sendEdgeAdded, sendEdgeAdded, sendEdgeAttributeAdded, sendEdgeAttributeAdded, sendEdgeAttributeChanged, sendEdgeAttributeChanged, sendEdgeAttributeRemoved, sendEdgeAttributeRemoved, sendEdgeRemoved, sendEdgeRemoved, sendGraphAttributeAdded, sendGraphAttributeAdded, sendGraphAttributeChanged, sendGraphAttributeChanged, sendGraphAttributeRemoved, sendGraphAttributeRemoved, sendGraphCleared, sendGraphCleared, sendNodeAdded, sendNodeAdded, sendNodeAttributeAdded, sendNodeAttributeAdded, sendNodeAttributeChanged, sendNodeAttributeChanged, sendNodeAttributeRemoved, sendNodeAttributeRemoved, sendNodeRemoved, sendNodeRemoved, sendStepBegins, sendStepBeginsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graphstream.stream.Source
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink
-
Field Details
-
k
protected static double k -
K1Init
protected static double K1Init -
K1Final
protected static double K1Final -
STANDARD_DISTANCE_X
public static double STANDARD_DISTANCE_X -
STANDARD_DISTANCE_Y
public static double STANDARD_DISTANCE_Y -
graphManager
-
-
Constructor Details
-
AbstractLayout
-
-
Method Details
-
getLayoutAlgorithmName
- Specified by:
getLayoutAlgorithmNamein interfaceorg.graphstream.ui.layout.Layout- Overrides:
getLayoutAlgorithmNamein classorg.graphstream.ui.layout.springbox.implementations.SpringBox
-
chooseNodePosition
protected void chooseNodePosition(org.graphstream.ui.layout.springbox.NodeParticle n0, org.graphstream.ui.layout.springbox.NodeParticle n1) - Overrides:
chooseNodePositionin classorg.graphstream.ui.layout.springbox.implementations.SpringBox
-
getGraphManager
-
particleMoved
- Specified by:
particleMovedin interfaceorg.miv.pherd.ParticleBoxListener- Overrides:
particleMovedin classorg.graphstream.ui.layout.springbox.BarnesHutLayout
-