Class SugiyamaRunnable.Builder<V,​E,​T extends SugiyamaRunnable<V,​E>,​B extends SugiyamaRunnable.Builder<V,​E,​T,​B>>

  • Type Parameters:
    V - the vertex type
    E - the edge type
    T - the type that is built
    B - 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 Detail

      • vertexPredicate

        protected Predicate<V> vertexPredicate
      • edgePredicate

        protected Predicate<E> edgePredicate
      • 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
      • multiComponent

        protected boolean multiComponent
    • Constructor Detail

      • Builder

        public Builder()
    • 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)
      • vertexShapeFunction

        public B vertexShapeFunction​(Function<V,​Rectangle> vertexShapeFunction)
      • 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)
      • layering

        public B layering​(Layering layering)
      • multiComponent

        public B multiComponent​(boolean multiComponent)
      • build

        public T build()