Class LayoutModel.Builder<V,​T extends DefaultLayoutModel<V>,​B extends LayoutModel.Builder<V,​T,​B>>

  • Type Parameters:
    V - the vertex type
    T - the type of the superclass of the LayoutModel to be built
    Enclosing interface:
    LayoutModel<V>

    public static class LayoutModel.Builder<V,​T extends DefaultLayoutModel<V>,​B extends LayoutModel.Builder<V,​T,​B>>
    extends AbstractLayoutModel.Builder<V,​T,​B>
    a builder for LayoutModel instances
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • layoutModel

        public B layoutModel​(LayoutModel<V> layoutModel)
        set the LayoutModel to copy with this builder
        Parameters:
        layoutModel -
        Returns:
        this builder for further use
      • initializer

        public B initializer​(Function<V,​Point> initializer)
        sets the initializer to use for new vertices
        Parameters:
        initializer -
        Returns:
        the builder
      • build

        public T build()
        build an instance of the requested LayoutModel of type T
        Returns: