Package edu.uci.ics.jung.algorithms.layout.util

Examples of edu.uci.ics.jung.algorithms.layout.util.VisRunner.stop()


     *
     */
    private void animateLayoutChanges() {
        if (!(layout instanceof CircleLayout)) {
            Relaxer relaxer = new VisRunner((IterativeContext) layout);
            relaxer.stop();
            relaxer.prerelax();
            StaticLayout<Object, Object> staticLayout = new StaticLayout<Object, Object>(g, layout);
            LayoutTransition<Object, Object> lt = new LayoutTransition<Object, Object>(vv, vv.getGraphLayout(),
                            staticLayout);
            Animator animator = new Animator(lt);
View Full Code Here


                } else {
                    switchLayout.setText("Switch to SpringLayout");
                    layout = new FRLayout<Number,Number>(g, d);
                    layout.setSize(d);
                Relaxer relaxer = new VisRunner((IterativeContext)layout);
                relaxer.stop();
                relaxer.prerelax();
                StaticLayout<Number,Number> staticLayout =
                  new StaticLayout<Number,Number>(g, layout);
            LayoutTransition<Number,Number> lt =
              new LayoutTransition<Number,Number>(vv, vv.getGraphLayout(),
View Full Code Here

                v_prev = v1;

                layout.initialize();

            Relaxer relaxer = new VisRunner((IterativeContext)layout);
            relaxer.stop();
            relaxer.prerelax();
            StaticLayout<Number,Number> staticLayout =
              new StaticLayout<Number,Number>(g, layout);
        LayoutTransition<Number,Number> lt =
          new LayoutTransition<Number,Number>(vv, vv.getGraphLayout(),
View Full Code Here

        this.g = og;
        //create a graphdraw
        layout = new FRLayout<Number,Number>(g);
        layout.setSize(new Dimension(600,600));
    Relaxer relaxer = new VisRunner((IterativeContext)layout);
    relaxer.stop();
    relaxer.prerelax();

    Layout<Number,Number> staticLayout =
      new StaticLayout<Number,Number>(g, layout);
View Full Code Here

                    switchLayout.setText("Switch to FRLayout");
                    layout =
                      new SpringLayout<Number,Number>(g, new ConstantTransformer(EDGE_LENGTH));
                    layout.setSize(d);
                Relaxer relaxer = new VisRunner((IterativeContext)layout);
                relaxer.stop();
                relaxer.prerelax();
                StaticLayout<Number,Number> staticLayout =
                  new StaticLayout<Number,Number>(g, layout);
            LayoutTransition<Number,Number> lt =
              new LayoutTransition<Number,Number>(vv, vv.getGraphLayout(),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.