public class SpringLayoutBuilder
extends java.lang.Object
Constructor and Description |
---|
SpringLayoutBuilder()
Initializes a new instance of the SpringLayoutBuilder class.
|
SpringLayoutBuilder(SpringLayout instance)
Initializes a new instance of the SpringLayoutBuilder class.
|
Modifier and Type | Method and Description |
---|---|
SpringLayoutBuilder |
anchoring(Anchoring value)
Sets a value indicating how links should be aligned to the anchor points of tree nodes.
|
SpringLayout |
create()
Creates a new object with the attributes accumulated by this builder.
|
SpringLayoutBuilder |
enableClusters(boolean value)
Sets a value indicating whether the layout algorithm should place nodes
into distinct clusters.
|
SpringLayout |
get()
Returns an existing object passed for initialization to this builder.
|
SpringLayoutBuilder |
iterations(int value)
Sets the number of iterations that the layout algorithm should run.
|
SpringLayoutBuilder |
keepGroupLayout(boolean value)
Sets a value specifying whether the relative position of nodes
within groups should be kept intact.
|
SpringLayoutBuilder |
minimizeCrossings(boolean value)
Sets a value indicating whether the algorithm should try to minimize
the number of link crossings.
|
SpringLayoutBuilder |
nodeDistance(float value)
Sets how much space should be left between adjacent nodes.
|
SpringLayoutBuilder |
randomSeed(int value)
Sets the randomization seed that should be used for
generating random node positions.
|
SpringLayoutBuilder |
repulsionFactor(double value)
Sets a multiplier value applied to the repulsive force between nodes.
|
public SpringLayoutBuilder()
public SpringLayoutBuilder(SpringLayout instance)
public SpringLayoutBuilder anchoring(Anchoring value)
value
- A member of the Anchoring
enumeration.public SpringLayoutBuilder enableClusters(boolean value)
value
- true
if nodes should be placed in clusters
when possible, otherwise false
.public SpringLayoutBuilder iterations(int value)
value
- An integer value specifying the number of iterations.public SpringLayoutBuilder keepGroupLayout(boolean value)
value
- true
if the relative position of nodes within
groups should be preserved, otherwise false
.public SpringLayoutBuilder minimizeCrossings(boolean value)
value
- true
if the layout routine should try to minimize
the number of link crossings, otherwise false
.public SpringLayoutBuilder nodeDistance(float value)
value
- A float value specifying the desired node distance.public SpringLayoutBuilder randomSeed(int value)
value
- An integer value specifying the randomization seed.public SpringLayoutBuilder repulsionFactor(double value)
value
- A float value by which the repulsive force between nodes is multiplied.public SpringLayout create()
public SpringLayout get()