|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.stream.SourceBase
org.graphstream.ui.layout.springbox.BarnesHutLayout
org.graphstream.ui.layout.springbox.implementations.SpringBox
public class SpringBox
The GraphStream Spring-Box layout.
This layout is the default GraphStream layout that handles dynamic graphs.
It can constantly evolve according to the changes in the graph. And works
well with the LayoutRunner
class so that the computations stops
when the layout is stable enougth.
This algorithm is based on the Frutcherman-Reingold force layout algorithm modified on the attraction (the degree of nodes is taken into account to stabilize the layout as we are not only interested in the result, but also in the steps in between).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.graphstream.stream.SourceBase |
---|
SourceBase.ElementType |
Constructor Summary | |
---|---|
SpringBox()
New "Spring-Box" 2D Barnes-Hut simulation. |
|
SpringBox(boolean is3D)
New "Spring-Box" Barnes-Hut simulation. |
|
SpringBox(boolean is3D,
Random randomNumberGenerator)
New "Spring-Box" Barnes-Hut simulation. |
Method Summary | |
---|---|
String |
getLayoutAlgorithmName()
Name of the layout algorithm. |
NodeParticle |
newNodeParticle(String id)
Factory method to create node particles. |
void |
setQuality(double qualityLevel)
Set the overall quality level, a number between 0 and 1 with 1 the highest quality available, but often with a slower computation. |
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 |
Constructor Detail |
---|
public SpringBox()
public SpringBox(boolean is3D)
is3D
- If true the simulation dimensions count is 3 else 2.public SpringBox(boolean is3D, Random randomNumberGenerator)
is3D
- If true the simulation dimensions count is 3 else 2.randomNumberGenerator
- The random number generator to use.Method Detail |
---|
public String getLayoutAlgorithmName()
Layout
getLayoutAlgorithmName
in interface Layout
getLayoutAlgorithmName
in class BarnesHutLayout
public void setQuality(double qualityLevel)
Layout
setQuality
in interface Layout
setQuality
in class BarnesHutLayout
qualityLevel
- The quality level, a number between 0 and 1.public NodeParticle newNodeParticle(String id)
BarnesHutLayout
newNodeParticle
in class BarnesHutLayout
id
- The identifier of the new node/particle.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |