Class KKLayoutAlgorithm.Builder<V,T extends KKLayoutAlgorithm<V>,B extends KKLayoutAlgorithm.Builder<V,T,B>>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.AbstractLayoutAlgorithm.Builder<V,T,B>
-
- org.jungrapht.visualization.layout.algorithms.AbstractIterativeLayoutAlgorithm.Builder<V,T,B>
-
- org.jungrapht.visualization.layout.algorithms.KKLayoutAlgorithm.Builder<V,T,B>
-
- All Implemented Interfaces:
LayoutAlgorithm.Builder<V,T,B>
- Enclosing class:
- KKLayoutAlgorithm<V>
public static class KKLayoutAlgorithm.Builder<V,T extends KKLayoutAlgorithm<V>,B extends KKLayoutAlgorithm.Builder<V,T,B>> extends AbstractIterativeLayoutAlgorithm.Builder<V,T,B> implements LayoutAlgorithm.Builder<V,T,B>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
adjustForGravity
protected boolean
exchangeVertices
protected int
maxIterations
-
Fields inherited from class org.jungrapht.visualization.layout.algorithms.AbstractIterativeLayoutAlgorithm.Builder
afterRunnable, executor, preRelaxDurationMs, random, shouldPrerelax, threaded
-
Fields inherited from class org.jungrapht.visualization.layout.algorithms.AbstractLayoutAlgorithm.Builder
after
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B
adjustForGravity(boolean adjustForGravity)
T
build()
B
exchangeVertices(boolean exchangeVertices)
B
maxIterations(int maxIterations)
-
Methods inherited from class org.jungrapht.visualization.layout.algorithms.AbstractIterativeLayoutAlgorithm.Builder
afterRunnable, executor, prerelax, preRelaxDuration, randomSeed, self, threaded
-
Methods inherited from class org.jungrapht.visualization.layout.algorithms.AbstractLayoutAlgorithm.Builder
after
-
-
-
-
Method Detail
-
maxIterations
public B maxIterations(int maxIterations)
-
adjustForGravity
public B adjustForGravity(boolean adjustForGravity)
-
exchangeVertices
public B exchangeVertices(boolean exchangeVertices)
-
build
public T build()
- Specified by:
build
in interfaceLayoutAlgorithm.Builder<V,T extends KKLayoutAlgorithm<V>,B extends KKLayoutAlgorithm.Builder<V,T,B>>
- Specified by:
build
in classAbstractIterativeLayoutAlgorithm.Builder<V,T extends KKLayoutAlgorithm<V>,B extends KKLayoutAlgorithm.Builder<V,T,B>>
-
-