Class LayeredLayoutAlgorithm.Builder<V,E,T extends LayeredLayoutAlgorithm<V,E> & EdgeAwareLayoutAlgorithm<V,E>,B extends LayeredLayoutAlgorithm.Builder<V,E,T,B>>
- java.lang.Object
-
- org.jungrapht.samples.sugiyama.test.algorithms.LayeredLayoutAlgorithm.Builder<V,E,T,B>
-
- Type Parameters:
V- the vertex typeE- the edge typeT- the type that is builtB- the builder type
- All Implemented Interfaces:
LayoutAlgorithm.Builder<V,T,B>
- Enclosing class:
- LayeredLayoutAlgorithm<V,E>
public static class LayeredLayoutAlgorithm.Builder<V,E,T extends LayeredLayoutAlgorithm<V,E> & EdgeAwareLayoutAlgorithm<V,E>,B extends LayeredLayoutAlgorithm.Builder<V,E,T,B>> extends Object implements LayoutAlgorithm.Builder<V,T,B>
a Builder to create a configured instance
-
-
Field Summary
Fields Modifier and Type Field Description protected Runnableafterprotected booleanexpandLayoutprotected Function<V,Rectangle>vertexBoundsFunction
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bafter(Runnable after)Tbuild()BexpandLayout(boolean expandLayout)protected Bself()BvertexBoundsFunction(Function<V,Rectangle> vertexBoundsFunction)
-
-
-
Method Detail
-
self
protected B self()
-
expandLayout
public B expandLayout(boolean expandLayout)
-
build
public T build()
- Specified by:
buildin interfaceLayoutAlgorithm.Builder<V,E,T extends LayeredLayoutAlgorithm<V,E> & EdgeAwareLayoutAlgorithm<V,E>>
-
-