Package org.graphstream.ui.layout
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
-
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
-
Constructor Details
-
HierarchicalLayout
public HierarchicalLayout()
-
-
Method Details
-
setRoots
-
clear
public void clear()- Specified by:
clear
in interfaceorg.graphstream.ui.layout.Layout
-
compute
public void compute()- Specified by:
compute
in interfaceorg.graphstream.ui.layout.Layout
-
freezeNode
- Specified by:
freezeNode
in interfaceorg.graphstream.ui.layout.Layout
-
getForce
public double getForce()- Specified by:
getForce
in interfaceorg.graphstream.ui.layout.Layout
-
getHiPoint
public org.graphstream.ui.geom.Point3 getHiPoint()- Specified by:
getHiPoint
in interfaceorg.graphstream.ui.layout.Layout
-
getLastStepTime
public long getLastStepTime()- Specified by:
getLastStepTime
in interfaceorg.graphstream.ui.layout.Layout
-
getLayoutAlgorithmName
- Specified by:
getLayoutAlgorithmName
in interfaceorg.graphstream.ui.layout.Layout
-
getLowPoint
public org.graphstream.ui.geom.Point3 getLowPoint()- Specified by:
getLowPoint
in interfaceorg.graphstream.ui.layout.Layout
-
getNodeMovedCount
public int getNodeMovedCount()- Specified by:
getNodeMovedCount
in interfaceorg.graphstream.ui.layout.Layout
-
getQuality
public double getQuality()- Specified by:
getQuality
in interfaceorg.graphstream.ui.layout.Layout
-
getStabilization
public double getStabilization()- Specified by:
getStabilization
in interfaceorg.graphstream.ui.layout.Layout
-
getStabilizationLimit
public double getStabilizationLimit()- Specified by:
getStabilizationLimit
in interfaceorg.graphstream.ui.layout.Layout
-
getSteps
public int getSteps()- Specified by:
getSteps
in interfaceorg.graphstream.ui.layout.Layout
-
inputPos
- Throws:
IOException
-
moveNode
- Specified by:
moveNode
in interfaceorg.graphstream.ui.layout.Layout
-
outputPos
- Throws:
IOException
-
setForce
public void setForce(double value)- Specified by:
setForce
in interfaceorg.graphstream.ui.layout.Layout
-
setQuality
public void setQuality(double qualityLevel)- Specified by:
setQuality
in interfaceorg.graphstream.ui.layout.Layout
-
setSendNodeInfos
public void setSendNodeInfos(boolean send)- Specified by:
setSendNodeInfos
in interfaceorg.graphstream.ui.layout.Layout
-
setStabilizationLimit
public void setStabilizationLimit(double value)- Specified by:
setStabilizationLimit
in interfaceorg.graphstream.ui.layout.Layout
-
shake
public void shake()- Specified by:
shake
in interfaceorg.graphstream.ui.layout.Layout
-
nodeAdded
- Specified by:
nodeAdded
in interfaceorg.graphstream.stream.ElementSink
- Overrides:
nodeAdded
in classorg.graphstream.stream.PipeBase
-
nodeRemoved
- Specified by:
nodeRemoved
in interfaceorg.graphstream.stream.ElementSink
- Overrides:
nodeRemoved
in classorg.graphstream.stream.PipeBase
-
edgeAdded
public void edgeAdded(String sourceId, long timeId, String edgeId, String fromId, String toId, boolean directed)- Specified by:
edgeAdded
in interfaceorg.graphstream.stream.ElementSink
- Overrides:
edgeAdded
in classorg.graphstream.stream.PipeBase
-
edgeRemoved
- Specified by:
edgeRemoved
in interfaceorg.graphstream.stream.ElementSink
- Overrides:
edgeRemoved
in classorg.graphstream.stream.PipeBase
-
graphCleared
- Specified by:
graphCleared
in interfaceorg.graphstream.stream.ElementSink
- Overrides:
graphCleared
in classorg.graphstream.stream.PipeBase
-
main
-