Class AbstractIterativeLayoutAlgorithm.Builder<V,T extends AbstractIterativeLayoutAlgorithm<V>,B extends AbstractIterativeLayoutAlgorithm.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>
-
- All Implemented Interfaces:
LayoutAlgorithm.Builder<V,T,B>
- Direct Known Subclasses:
AnimationLayoutAlgorithm.Builder
,ForceAtlas2LayoutAlgorithm.Builder
,FRLayoutAlgorithm.Builder
,GEMLayoutAlgorithm.Builder
,ISOMLayoutAlgorithm.Builder
,KKLayoutAlgorithm.Builder
,SpringLayoutAlgorithm.Builder
- Enclosing class:
- AbstractIterativeLayoutAlgorithm<V>
public abstract static class AbstractIterativeLayoutAlgorithm.Builder<V,T extends AbstractIterativeLayoutAlgorithm<V>,B extends AbstractIterativeLayoutAlgorithm.Builder<V,T,B>> extends AbstractLayoutAlgorithm.Builder<V,T,B> implements LayoutAlgorithm.Builder<V,T,B>
-
-
Field Summary
Fields Modifier and Type Field Description protected Runnable
afterRunnable
protected Executor
executor
protected int
preRelaxDurationMs
protected Random
random
protected boolean
shouldPrerelax
protected boolean
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 Abstract Methods Concrete Methods Modifier and Type Method Description B
afterRunnable(Runnable afterRunnable)
abstract T
build()
B
executor(Executor executor)
B
prerelax(boolean shouldPrerelax)
B
preRelaxDuration(int preRelaxDurationMs)
B
randomSeed(long randomSeed)
protected B
self()
B
threaded(boolean threaded)
-
Methods inherited from class org.jungrapht.visualization.layout.algorithms.AbstractLayoutAlgorithm.Builder
after
-
-
-
-
Method Detail
-
randomSeed
public B randomSeed(long randomSeed)
-
prerelax
public B prerelax(boolean shouldPrerelax)
-
preRelaxDuration
public B preRelaxDuration(int preRelaxDurationMs)
-
threaded
public B threaded(boolean threaded)
-
self
protected B self()
- Overrides:
self
in classAbstractLayoutAlgorithm.Builder<V,T extends AbstractIterativeLayoutAlgorithm<V>,B extends AbstractIterativeLayoutAlgorithm.Builder<V,T,B>>
-
build
public abstract T build()
- Specified by:
build
in interfaceLayoutAlgorithm.Builder<V,T extends AbstractIterativeLayoutAlgorithm<V>,B extends AbstractIterativeLayoutAlgorithm.Builder<V,T,B>>
- Specified by:
build
in classAbstractLayoutAlgorithm.Builder<V,T extends AbstractIterativeLayoutAlgorithm<V>,B extends AbstractIterativeLayoutAlgorithm.Builder<V,T,B>>
-
-