Class HierarchicalLayout

java.lang.Object
org.graphstream.stream.SourceBase
org.graphstream.stream.PipeBase
org.graphstream.ui.layout.HierarchicalLayout
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

public class HierarchicalLayout
extends org.graphstream.stream.PipeBase
implements org.graphstream.ui.layout.Layout
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  HierarchicalLayout.Rendering  

    Nested classes/interfaces inherited from class org.graphstream.stream.SourceBase

    org.graphstream.stream.SourceBase.ElementType
  • Constructor Summary

    Constructors 
    Constructor Description
    HierarchicalLayout()  
  • Method Summary

    Modifier and Type Method Description
    void clear()  
    void compute()  
    void edgeAdded​(String sourceId, long timeId, String edgeId, String fromId, String toId, boolean directed)  
    void edgeRemoved​(String sourceId, long timeId, String edgeId)  
    void freezeNode​(String id, boolean frozen)  
    double getForce()  
    org.graphstream.ui.geom.Point3 getHiPoint()  
    long getLastStepTime()  
    String getLayoutAlgorithmName()  
    org.graphstream.ui.geom.Point3 getLowPoint()  
    int getNodeMovedCount()  
    double getQuality()  
    double getStabilization()  
    double getStabilizationLimit()  
    int getSteps()  
    void graphCleared​(String sourceId, long timeId)  
    void inputPos​(String filename)  
    static void main​(String... args)  
    void moveNode​(String id, double x, double y, double z)  
    void nodeAdded​(String sourceId, long timeId, String nodeId)  
    void nodeRemoved​(String sourceId, long timeId, String nodeId)  
    void outputPos​(String filename)  
    void setForce​(double value)  
    void setQuality​(double qualityLevel)  
    void setRoots​(String... rootsId)  
    void setSendNodeInfos​(boolean send)  
    void setStabilizationLimit​(double value)  
    void shake()  

    Methods inherited from class org.graphstream.stream.PipeBase

    edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, stepBegins

    Methods inherited from class org.graphstream.stream.SourceBase

    addAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, 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

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

    Methods inherited from interface org.graphstream.stream.AttributeSink

    edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved

    Methods inherited from interface org.graphstream.stream.ElementSink

    stepBegins

    Methods inherited from interface org.graphstream.stream.Source

    addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink
  • Constructor Details

  • Method Details

    • setRoots

      public void setRoots​(String... rootsId)
    • clear

      public void clear()
      Specified by:
      clear in interface org.graphstream.ui.layout.Layout
    • compute

      public void compute()
      Specified by:
      compute in interface org.graphstream.ui.layout.Layout
    • freezeNode

      public void freezeNode​(String id, boolean frozen)
      Specified by:
      freezeNode in interface org.graphstream.ui.layout.Layout
    • getForce

      public double getForce()
      Specified by:
      getForce in interface org.graphstream.ui.layout.Layout
    • getHiPoint

      public org.graphstream.ui.geom.Point3 getHiPoint()
      Specified by:
      getHiPoint in interface org.graphstream.ui.layout.Layout
    • getLastStepTime

      public long getLastStepTime()
      Specified by:
      getLastStepTime in interface org.graphstream.ui.layout.Layout
    • getLayoutAlgorithmName

      public String getLayoutAlgorithmName()
      Specified by:
      getLayoutAlgorithmName in interface org.graphstream.ui.layout.Layout
    • getLowPoint

      public org.graphstream.ui.geom.Point3 getLowPoint()
      Specified by:
      getLowPoint in interface org.graphstream.ui.layout.Layout
    • getNodeMovedCount

      public int getNodeMovedCount()
      Specified by:
      getNodeMovedCount in interface org.graphstream.ui.layout.Layout
    • getQuality

      public double getQuality()
      Specified by:
      getQuality in interface org.graphstream.ui.layout.Layout
    • getStabilization

      public double getStabilization()
      Specified by:
      getStabilization in interface org.graphstream.ui.layout.Layout
    • getStabilizationLimit

      public double getStabilizationLimit()
      Specified by:
      getStabilizationLimit in interface org.graphstream.ui.layout.Layout
    • getSteps

      public int getSteps()
      Specified by:
      getSteps in interface org.graphstream.ui.layout.Layout
    • inputPos

      public void inputPos​(String filename) throws IOException
      Throws:
      IOException
    • moveNode

      public void moveNode​(String id, double x, double y, double z)
      Specified by:
      moveNode in interface org.graphstream.ui.layout.Layout
    • outputPos

      public void outputPos​(String filename) throws IOException
      Throws:
      IOException
    • setForce

      public void setForce​(double value)
      Specified by:
      setForce in interface org.graphstream.ui.layout.Layout
    • setQuality

      public void setQuality​(double qualityLevel)
      Specified by:
      setQuality in interface org.graphstream.ui.layout.Layout
    • setSendNodeInfos

      public void setSendNodeInfos​(boolean send)
      Specified by:
      setSendNodeInfos in interface org.graphstream.ui.layout.Layout
    • setStabilizationLimit

      public void setStabilizationLimit​(double value)
      Specified by:
      setStabilizationLimit in interface org.graphstream.ui.layout.Layout
    • shake

      public void shake()
      Specified by:
      shake in interface org.graphstream.ui.layout.Layout
    • nodeAdded

      public void nodeAdded​(String sourceId, long timeId, String nodeId)
      Specified by:
      nodeAdded in interface org.graphstream.stream.ElementSink
      Overrides:
      nodeAdded in class org.graphstream.stream.PipeBase
    • nodeRemoved

      public void nodeRemoved​(String sourceId, long timeId, String nodeId)
      Specified by:
      nodeRemoved in interface org.graphstream.stream.ElementSink
      Overrides:
      nodeRemoved in class org.graphstream.stream.PipeBase
    • edgeAdded

      public void edgeAdded​(String sourceId, long timeId, String edgeId, String fromId, String toId, boolean directed)
      Specified by:
      edgeAdded in interface org.graphstream.stream.ElementSink
      Overrides:
      edgeAdded in class org.graphstream.stream.PipeBase
    • edgeRemoved

      public void edgeRemoved​(String sourceId, long timeId, String edgeId)
      Specified by:
      edgeRemoved in interface org.graphstream.stream.ElementSink
      Overrides:
      edgeRemoved in class org.graphstream.stream.PipeBase
    • graphCleared

      public void graphCleared​(String sourceId, long timeId)
      Specified by:
      graphCleared in interface org.graphstream.stream.ElementSink
      Overrides:
      graphCleared in class org.graphstream.stream.PipeBase
    • main

      public static void main​(String... args)