Class SugiyamaRunnable.Builder<V,E,T extends SugiyamaRunnable<V,E>,B extends SugiyamaRunnable.Builder<V,E,T,B>>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.sugiyama.SugiyamaRunnable.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:
TestSugiyamaRunnable.Builder
- Enclosing class:
- SugiyamaRunnable<V,E>
public static class SugiyamaRunnable.Builder<V,E,T extends SugiyamaRunnable<V,E>,B extends SugiyamaRunnable.Builder<V,E,T,B>> extends Object
a Builder to create a configured instance
-
-
Field Summary
Fields Modifier and Type Field Description protected Comparator<E>
edgeComparator
protected Predicate<E>
edgePredicate
protected Layering
layering
protected LayoutModel<V>
layoutModel
protected int
maxLevelCross
protected boolean
multiComponent
protected boolean
postStraighten
protected boolean
straightenEdges
protected boolean
transpose
protected int
transposeLimit
protected Comparator<V>
vertexComparator
protected Predicate<V>
vertexPredicate
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
edgeComparator(Comparator<E> edgeComparator)
B
edgePredicate(Predicate<E> edgePredicate)
B
layering(Layering layering)
B
layoutModel(LayoutModel<V> layoutModel)
B
maxLevelCross(int maxLevelCross)
B
multiComponent(boolean multiComponent)
B
postStraighten(boolean postStraighten)
protected B
self()
B
straightenEdges(boolean straightenEdges)
B
transpose(boolean transpose)
B
transposeLimit(int transposeLimit)
B
vertexComparator(Comparator<V> vertexComparator)
B
vertexPredicate(Predicate<V> vertexPredicate)
B
vertexShapeFunction(Function<V,Rectangle> vertexShapeFunction)
-
-
-
Field Detail
-
layoutModel
protected LayoutModel<V> layoutModel
-
vertexComparator
protected Comparator<V> vertexComparator
-
edgeComparator
protected Comparator<E> edgeComparator
-
straightenEdges
protected boolean straightenEdges
-
postStraighten
protected boolean postStraighten
-
transpose
protected boolean transpose
-
transposeLimit
protected int transposeLimit
-
maxLevelCross
protected int maxLevelCross
-
layering
protected Layering layering
-
multiComponent
protected boolean multiComponent
-
-
Method Detail
-
self
protected B self()
-
vertexPredicate
public B vertexPredicate(Predicate<V> vertexPredicate)
- Parameters:
vertexPredicate
-Predicate
to apply to vertices- Returns:
- this Builder
-
edgePredicate
public B edgePredicate(Predicate<E> edgePredicate)
- Parameters:
edgePredicate
-Predicate
to apply to edges- Returns:
- this Builder
-
vertexComparator
public B vertexComparator(Comparator<V> vertexComparator)
- Parameters:
vertexComparator
-Comparator
to sort vertices- Returns:
- this Builder
-
edgeComparator
public B edgeComparator(Comparator<E> edgeComparator)
- Parameters:
edgeComparator
-Comparator
to sort edges- Returns:
- this Builder
-
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)
-
transposeLimit
public B transposeLimit(int transposeLimit)
-
maxLevelCross
public B maxLevelCross(int maxLevelCross)
-
multiComponent
public B multiComponent(boolean multiComponent)
-
build
public T build()
-
-