Class EiglspergerRunnable.Builder<V,E,T extends EiglspergerRunnable<V,E>,B extends EiglspergerRunnable.Builder<V,E,T,B>>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.eiglsperger.EiglspergerRunnable.Builder<V,E,T,B>
-
- Type Parameters:
V
- the vertex typeE
- the edge typeT
- the type that is builtB
- the builder type
- Direct Known Subclasses:
TestEiglspergerRunnable.Builder
- Enclosing class:
- EiglspergerRunnable<V,E>
public static class EiglspergerRunnable.Builder<V,E,T extends EiglspergerRunnable<V,E>,B extends EiglspergerRunnable.Builder<V,E,T,B>> extends Object
a Builder to create a configured instance
-
-
Field Summary
Fields Modifier and Type Field Description protected Layering
layering
protected LayoutModel<V>
layoutModel
protected int
maxLevelCross
protected boolean
minimizeEdgeLength
protected boolean
multiComponent
protected boolean
postStraighten
protected boolean
straightenEdges
protected boolean
transpose
protected Function<V,Rectangle>
vertexShapeFunction
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
build()
B
layering(Layering layering)
B
layoutModel(LayoutModel<V> layoutModel)
B
maxLevelCross(int maxLevelCross)
B
minimzeEdgeLength(boolean minimizeEdgeLength)
B
multiComponent(boolean multiComponent)
B
postStraighten(boolean postStraighten)
protected B
self()
B
straightenEdges(boolean straightenEdges)
B
transpose(boolean transpose)
B
vertexShapeFunction(Function<V,Rectangle> vertexShapeFunction)
-
-
-
Field Detail
-
layoutModel
protected LayoutModel<V> layoutModel
-
straightenEdges
protected boolean straightenEdges
-
postStraighten
protected boolean postStraighten
-
transpose
protected boolean transpose
-
maxLevelCross
protected int maxLevelCross
-
minimizeEdgeLength
protected boolean minimizeEdgeLength
-
layering
protected Layering layering
-
multiComponent
protected boolean multiComponent
-
-
Method Detail
-
self
protected B self()
-
layoutModel
public B layoutModel(LayoutModel<V> layoutModel)
-
straightenEdges
public B straightenEdges(boolean straightenEdges)
-
postStraighten
public B postStraighten(boolean postStraighten)
-
transpose
public B transpose(boolean transpose)
-
maxLevelCross
public B maxLevelCross(int maxLevelCross)
-
minimzeEdgeLength
public B minimzeEdgeLength(boolean minimizeEdgeLength)
-
multiComponent
public B multiComponent(boolean multiComponent)
-
build
public T build()
-
-