Class AbstractHierarchicalMinCrossLayoutAlgorithm.Builder<V,E,T extends AbstractHierarchicalMinCrossLayoutAlgorithm<V,E> & EdgeAwareLayoutAlgorithm<V,E>,B extends AbstractHierarchicalMinCrossLayoutAlgorithm.Builder<V,E,T,B>>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.AbstractHierarchicalMinCrossLayoutAlgorithm.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>
- Direct Known Subclasses:
EiglspergerLayoutAlgorithm.Builder,HierarchicalMinCrossLayoutAlgorithm.Builder,SugiyamaLayoutAlgorithm.Builder
- Enclosing class:
- AbstractHierarchicalMinCrossLayoutAlgorithm<V,E>
public abstract static class AbstractHierarchicalMinCrossLayoutAlgorithm.Builder<V,E,T extends AbstractHierarchicalMinCrossLayoutAlgorithm<V,E> & EdgeAwareLayoutAlgorithm<V,E>,B extends AbstractHierarchicalMinCrossLayoutAlgorithm.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 Executorexecutorprotected booleanexpandLayoutprotected Layeringlayeringprotected intmaxLevelCrossprotected Function<org.jgrapht.Graph<V,E>,Integer>maxLevelCrossFunctionprotected booleanpostStraightenprotected booleanseparateComponentsprotected booleanstraightenEdgesprotected booleanthreadedprotected booleantransposeprotected 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)Bexecutor(Executor executor)BexpandLayout(boolean expandLayout)Blayering(Layering layering)BmaxLevelCross(int maxLevelCross)BmaxLevelCrossFunction(Function<org.jgrapht.Graph<V,E>,Integer> maxLevelCrossFunction)BpostStraighten(boolean postStraighten)protected Bself()BseparateComponents(boolean separateComponents)BstraightenEdges(boolean straightenEdges)Bthreaded(boolean threaded)Btranspose(boolean transpose)BvertexBoundsFunction(Function<V,Rectangle> vertexBoundsFunction)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jungrapht.visualization.layout.algorithms.LayoutAlgorithm.Builder
build
-
-
-
-
Field Detail
-
executor
protected Executor executor
-
straightenEdges
protected boolean straightenEdges
-
postStraighten
protected boolean postStraighten
-
transpose
protected boolean transpose
-
maxLevelCross
protected int maxLevelCross
-
expandLayout
protected boolean expandLayout
-
layering
protected Layering layering
-
after
protected Runnable after
-
threaded
protected boolean threaded
-
separateComponents
protected boolean separateComponents
-
-
Method Detail
-
self
protected B self()
-
straightenEdges
public B straightenEdges(boolean straightenEdges)
-
postStraighten
public B postStraighten(boolean postStraighten)
-
transpose
public B transpose(boolean transpose)
-
maxLevelCross
public B maxLevelCross(int maxLevelCross)
-
maxLevelCrossFunction
public B maxLevelCrossFunction(Function<org.jgrapht.Graph<V,E>,Integer> maxLevelCrossFunction)
-
expandLayout
public B expandLayout(boolean expandLayout)
-
threaded
public B threaded(boolean threaded)
-
separateComponents
public B separateComponents(boolean separateComponents)
-
-