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

    Fields
    Modifier and Type
    Field
    Description
    protected G
     
    protected static double
     
    protected static double
     
    protected static double
     
    static double
     
    static double
     

    Fields inherited from class org.graphstream.ui.layout.springbox.implementations.SpringBox

    K1, K2

    Fields 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, viewZone

    Fields inherited from class org.graphstream.stream.SourceBase

    attrSinks, eltsSinks, eventProcessing, eventQueue, sourceId, sourceTime
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    chooseNodePosition(org.graphstream.ui.layout.springbox.NodeParticle n0, org.graphstream.ui.layout.springbox.NodeParticle n1)
     
     
     
    void
    particleMoved(Object id, double x, double y, double z)
     

    Methods inherited from class org.graphstream.ui.layout.springbox.implementations.SpringBox

    newNodeParticle, setQuality

    Methods 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, stepFinished

    Methods 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, sendStepBegins

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      protected G extends AbstractGraphManager graphManager
  • Constructor Details

    • AbstractLayout

      public AbstractLayout(G gm)
  • Method Details

    • getLayoutAlgorithmName

      public String getLayoutAlgorithmName()
      Specified by:
      getLayoutAlgorithmName in interface org.graphstream.ui.layout.Layout
      Overrides:
      getLayoutAlgorithmName in class org.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:
      chooseNodePosition in class org.graphstream.ui.layout.springbox.implementations.SpringBox
    • getGraphManager

      public G getGraphManager()
    • particleMoved

      public void particleMoved(Object id, double x, double y, double z)
      Specified by:
      particleMoved in interface org.miv.pherd.ParticleBoxListener
      Overrides:
      particleMoved in class org.graphstream.ui.layout.springbox.BarnesHutLayout