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 classHierarchicalLayout.Rendering -
Constructor Summary
Constructors Constructor Description HierarchicalLayout() -
Method Summary
Modifier and Type Method Description voidclear()voidcompute()voidedgeAdded(String sourceId, long timeId, String edgeId, String fromId, String toId, boolean directed)voidedgeRemoved(String sourceId, long timeId, String edgeId)voidfreezeNode(String id, boolean frozen)doublegetForce()org.graphstream.ui.geom.Point3getHiPoint()longgetLastStepTime()StringgetLayoutAlgorithmName()org.graphstream.ui.geom.Point3getLowPoint()intgetNodeMovedCount()doublegetQuality()doublegetStabilization()doublegetStabilizationLimit()intgetSteps()voidgraphCleared(String sourceId, long timeId)voidinputPos(String filename)static voidmain(String... args)voidmoveNode(String id, double x, double y, double z)voidnodeAdded(String sourceId, long timeId, String nodeId)voidnodeRemoved(String sourceId, long timeId, String nodeId)voidoutputPos(String filename)voidsetForce(double value)voidsetQuality(double qualityLevel)voidsetRoots(String... rootsId)voidsetSendNodeInfos(boolean send)voidsetStabilizationLimit(double value)voidshake()Methods inherited from class org.graphstream.stream.PipeBase
edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, stepBeginsMethods 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, sendStepBeginsMethods 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:
clearin interfaceorg.graphstream.ui.layout.Layout
-
compute
public void compute()- Specified by:
computein interfaceorg.graphstream.ui.layout.Layout
-
freezeNode
- Specified by:
freezeNodein interfaceorg.graphstream.ui.layout.Layout
-
getForce
public double getForce()- Specified by:
getForcein interfaceorg.graphstream.ui.layout.Layout
-
getHiPoint
public org.graphstream.ui.geom.Point3 getHiPoint()- Specified by:
getHiPointin interfaceorg.graphstream.ui.layout.Layout
-
getLastStepTime
public long getLastStepTime()- Specified by:
getLastStepTimein interfaceorg.graphstream.ui.layout.Layout
-
getLayoutAlgorithmName
- Specified by:
getLayoutAlgorithmNamein interfaceorg.graphstream.ui.layout.Layout
-
getLowPoint
public org.graphstream.ui.geom.Point3 getLowPoint()- Specified by:
getLowPointin interfaceorg.graphstream.ui.layout.Layout
-
getNodeMovedCount
public int getNodeMovedCount()- Specified by:
getNodeMovedCountin interfaceorg.graphstream.ui.layout.Layout
-
getQuality
public double getQuality()- Specified by:
getQualityin interfaceorg.graphstream.ui.layout.Layout
-
getStabilization
public double getStabilization()- Specified by:
getStabilizationin interfaceorg.graphstream.ui.layout.Layout
-
getStabilizationLimit
public double getStabilizationLimit()- Specified by:
getStabilizationLimitin interfaceorg.graphstream.ui.layout.Layout
-
getSteps
public int getSteps()- Specified by:
getStepsin interfaceorg.graphstream.ui.layout.Layout
-
inputPos
- Throws:
IOException
-
moveNode
- Specified by:
moveNodein interfaceorg.graphstream.ui.layout.Layout
-
outputPos
- Throws:
IOException
-
setForce
public void setForce(double value)- Specified by:
setForcein interfaceorg.graphstream.ui.layout.Layout
-
setQuality
public void setQuality(double qualityLevel)- Specified by:
setQualityin interfaceorg.graphstream.ui.layout.Layout
-
setSendNodeInfos
public void setSendNodeInfos(boolean send)- Specified by:
setSendNodeInfosin interfaceorg.graphstream.ui.layout.Layout
-
setStabilizationLimit
public void setStabilizationLimit(double value)- Specified by:
setStabilizationLimitin interfaceorg.graphstream.ui.layout.Layout
-
shake
public void shake()- Specified by:
shakein interfaceorg.graphstream.ui.layout.Layout
-
nodeAdded
- Specified by:
nodeAddedin interfaceorg.graphstream.stream.ElementSink- Overrides:
nodeAddedin classorg.graphstream.stream.PipeBase
-
nodeRemoved
- Specified by:
nodeRemovedin interfaceorg.graphstream.stream.ElementSink- Overrides:
nodeRemovedin classorg.graphstream.stream.PipeBase
-
edgeAdded
public void edgeAdded(String sourceId, long timeId, String edgeId, String fromId, String toId, boolean directed)- Specified by:
edgeAddedin interfaceorg.graphstream.stream.ElementSink- Overrides:
edgeAddedin classorg.graphstream.stream.PipeBase
-
edgeRemoved
- Specified by:
edgeRemovedin interfaceorg.graphstream.stream.ElementSink- Overrides:
edgeRemovedin classorg.graphstream.stream.PipeBase
-
graphCleared
- Specified by:
graphClearedin interfaceorg.graphstream.stream.ElementSink- Overrides:
graphClearedin classorg.graphstream.stream.PipeBase
-
main
-