org.graphstream.ui.layout
Class Eades84Layout

java.lang.Object
  extended by org.graphstream.stream.SourceBase
      extended by org.graphstream.stream.PipeBase
          extended by org.graphstream.ui.layout.Eades84Layout
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 Eades84Layout
extends org.graphstream.stream.PipeBase
implements org.graphstream.ui.layout.Layout


Nested Class Summary
 
Nested classes/interfaces inherited from class org.graphstream.stream.SourceBase
org.graphstream.stream.SourceBase.ElementType
 
Constructor Summary
Eades84Layout()
           
 
Method Summary
 void addListener(org.graphstream.ui.layout.LayoutListener listener)
           
 void clear()
           
 void compute()
           
 void edgeAdded(String sourceId, long timeId, String edgeId, String fromNodeId, String toNodeId, 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 getNodeMoved()
           
 int getQuality()
           
 double getStabilization()
           
 double getStabilizationLimit()
           
 int getSteps()
           
 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 particleMoved(Object id, double x, double y, double z)
           
 void removeListener(org.graphstream.ui.layout.LayoutListener listener)
           
 void setForce(double value)
           
 void setQuality(int qualityLevel)
           
 void setSendNodeInfos(boolean send)
           
 void setStabilizationLimit(double l)
           
 void shake()
           
 
Methods inherited from class org.graphstream.stream.PipeBase
edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, graphCleared, 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, sendEdgeRemoved, sendEdgeRemoved, sendGraphCleared, sendGraphCleared, sendNodeAdded, sendNodeAdded, 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.Source
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink
 
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
graphCleared, stepBegins
 

Constructor Detail

Eades84Layout

public Eades84Layout()
Method Detail

getLayoutAlgorithmName

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

getNodeMoved

public int getNodeMoved()
Specified by:
getNodeMoved 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

setStabilizationLimit

public void setStabilizationLimit(double l)
Specified by:
setStabilizationLimit 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

getHiPoint

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

getSteps

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

getLastStepTime

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

getQuality

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

getForce

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

clear

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

addListener

public void addListener(org.graphstream.ui.layout.LayoutListener listener)
Specified by:
addListener in interface org.graphstream.ui.layout.Layout

removeListener

public void removeListener(org.graphstream.ui.layout.LayoutListener listener)
Specified by:
removeListener in interface org.graphstream.ui.layout.Layout

setForce

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

setQuality

public void setQuality(int 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

shake

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

moveNode

public void moveNode(String id,
                     double x,
                     double y,
                     double z)
Specified by:
moveNode 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

compute

public void compute()
Specified by:
compute 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 fromNodeId,
                      String toNodeId,
                      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

inputPos

public void inputPos(String filename)
              throws IOException
Specified by:
inputPos in interface org.graphstream.ui.layout.Layout
Throws:
IOException

outputPos

public void outputPos(String filename)
               throws IOException
Specified by:
outputPos in interface org.graphstream.ui.layout.Layout
Throws:
IOException

particleMoved

public void particleMoved(Object id,
                          double x,
                          double y,
                          double z)

main

public static void main(String... args)


Copyright © 2011. All Rights Reserved.