Class Stabilization.Builder

  • Enclosing class:
    Stabilization

    public static class Stabilization.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withEnabled

        public Stabilization.Builder withEnabled​(java.lang.Boolean enabled)
        Enables stabilization. Default value is true
      • withIterations

        public Stabilization.Builder withIterations​(java.lang.Integer iterations)
        Network tries to stabilize itself with the maximum number of iterations. Default value is 1000
      • withUpdateInterval

        public Stabilization.Builder withUpdateInterval​(java.lang.Integer updateInterval)
        The interval determines after how many iterations the 'stabilizationProgress' event is triggered. Default value is 50
      • withOnlyDynamicEdges

        public Stabilization.Builder withOnlyDynamicEdges​(java.lang.Boolean onlyDynamicEdges)
        If you have fixed positions of all nodes and you want to stabilize only edges then set the value to true. Default value is false
      • withFit

        public Stabilization.Builder withFit​(java.lang.Boolean fit)
        Indicates whether the view should be zoom to fit all nodes when a stabilization is finished. Default value is true