Package org.jungrapht.samples.util
Class MultipleLayoutSelector.Builder<V,E>
- java.lang.Object
-
- org.jungrapht.samples.util.MultipleLayoutSelector.Builder<V,E>
-
- Type Parameters:
V
- vertex typeE
- edge type
- Enclosing class:
- MultipleLayoutSelector<V,E>
public static class MultipleLayoutSelector.Builder<V,E> extends Object
Builder forTreeLayoutSelector
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultipleLayoutSelector.Builder
after(Runnable after)
MultipleLayoutSelector.Builder
alignFavoredEdges(boolean alignFavoredEdges)
MultipleLayoutSelector<V,E>
build()
MultipleLayoutSelector.Builder
edgeComparator(Comparator<E> edgeComparator)
MultipleLayoutSelector.Builder
edgePredicate(Predicate<E> edgePredicate)
MultipleLayoutSelector.Builder
initialSelection(int intialialSelection)
MultipleLayoutSelector.Builder
vertexComparator(Comparator<V> vertexComparator)
MultipleLayoutSelector.Builder
vertexPredicate(Predicate<V> vertexPredicate)
MultipleLayoutSelector.Builder
vertexShapeFunction(Function<V,Shape> vertexShapeFunction)
-
-
-
Method Detail
-
vertexShapeFunction
public MultipleLayoutSelector.Builder vertexShapeFunction(Function<V,Shape> vertexShapeFunction)
-
initialSelection
public MultipleLayoutSelector.Builder initialSelection(int intialialSelection)
- Parameters:
intialialSelection
- initial selection forTreeLayoutSelector
- Returns:
- this Builder
-
edgeComparator
public MultipleLayoutSelector.Builder edgeComparator(Comparator<E> edgeComparator)
- Parameters:
edgeComparator
-Comparator
to sort edges- Returns:
- this Builder
-
vertexComparator
public MultipleLayoutSelector.Builder vertexComparator(Comparator<V> vertexComparator)
- Parameters:
vertexComparator
-Comparator
to sort vertices- Returns:
- this Builder
-
edgePredicate
public MultipleLayoutSelector.Builder edgePredicate(Predicate<E> edgePredicate)
- Parameters:
edgePredicate
-Predicate
to identify preferred edges- Returns:
- this Builder
-
vertexPredicate
public MultipleLayoutSelector.Builder vertexPredicate(Predicate<V> vertexPredicate)
- Parameters:
vertexPredicate
-Predicate
to identify preferred vertices- Returns:
- this Builder
-
after
public MultipleLayoutSelector.Builder after(Runnable after)
- Parameters:
after
-Runnable
to execute after layout change- Returns:
- this Builder
-
alignFavoredEdges
public MultipleLayoutSelector.Builder alignFavoredEdges(boolean alignFavoredEdges)
-
build
public MultipleLayoutSelector<V,E> build()
- Returns:
- a configured
MultipleLayoutSelector
-
-