Class GEMLayoutAlgorithm.Builder<V,E,T extends GEMLayoutAlgorithm<V,E>,B extends GEMLayoutAlgorithm.Builder<V,E,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.GEMLayoutAlgorithm.Builder<V,E,T,B>
-
- All Implemented Interfaces:
LayoutAlgorithm.Builder<V,T,B>
- Enclosing class:
- GEMLayoutAlgorithm<V,E>
public static class GEMLayoutAlgorithm.Builder<V,E,T extends GEMLayoutAlgorithm<V,E>,B extends GEMLayoutAlgorithm.Builder<V,E,T,B>> extends AbstractIterativeLayoutAlgorithm.Builder<V,T,B> implements LayoutAlgorithm.Builder<V,T,B>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
adjustToFit
-
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
adjustToFit(boolean adjustToFit)
T
build()
B
clustered(boolean clustered)
B
horizontalSpacing(int horizontalSpacing)
B
maxIterations(int maxIterations)
B
multi(int multi)
B
verticalSpacing(int verticalSpacing)
-
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
-
multi
public B multi(int multi)
-
maxIterations
public B maxIterations(int maxIterations)
-
verticalSpacing
public B verticalSpacing(int verticalSpacing)
-
horizontalSpacing
public B horizontalSpacing(int horizontalSpacing)
-
clustered
public B clustered(boolean clustered)
-
adjustToFit
public B adjustToFit(boolean adjustToFit)
- Parameters:
adjustToFit
- adjust the points to fit in the layoutModel area- Returns:
- the Builder
-
build
public T build()
- Specified by:
build
in interfaceLayoutAlgorithm.Builder<V,E,T extends GEMLayoutAlgorithm<V,E>>
- Specified by:
build
in classAbstractIterativeLayoutAlgorithm.Builder<V,T extends GEMLayoutAlgorithm<V,E>,B extends GEMLayoutAlgorithm.Builder<V,E,T,B>>
-
-