Examples of RandomLayout


Examples of diva.graph.layout.RandomLayout

        /**
         * A method that initializes a bunch of default layouts.
         */
        public void initDefaultLayouts() {
            addLayout("Random", new RandomLayout(_target), null);
            addLayout("Levelized", new LevelLayout(_target), null);
        }
View Full Code Here

Examples of diva.graph.layout.RandomLayout

     */
    public void bogusLayout(MutableGraphModel model, AppContext context) {
        BasicGraphController gc = new BasicGraphController();
        context.getContentPane().add(new JGraph(new GraphPane(gc, model)));

        RandomLayout random = new RandomLayout(new BasicLayoutTarget(gc));
        random.layout(model.getRoot());
    }
View Full Code Here

Examples of diva.graph.layout.RandomLayout

            AppContext context) {
        final BasicGraphController bgc = new BasicGraphController();
        context.getContentPane().add(new JGraph(new GraphPane(bgc, model)));
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                RandomLayout random = new RandomLayout(new BasicLayoutTarget(
                        bgc));
                random.layout(model.getRoot());
            }
        });
    }
View Full Code Here

Examples of diva.graph.layout.RandomLayout

            AppContext context) {
        final BasicGraphController bgc = new BasicGraphController();
        context.getContentPane().add(new JGraph(new GraphPane(bgc, model)));
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                RandomLayout random = new RandomLayout(new BasicLayoutTarget(
                        bgc));
                random.layout(model.getRoot());
            }
        });
    }
View Full Code Here

Examples of net.wigis.graph.dnv.layout.implementations.RandomLayout

   * Randomize positions.
   */
  public void randomizePositions()
  {
    long startTime = System.currentTimeMillis();
    new RandomLayout().runLayout( graph, level, 100 );
    printTime( "randomizePositions", startTime );
  }
View Full Code Here

Examples of net.wigis.graph.dnv.layout.implementations.RandomLayout

    graph = generateGraph( input, n, output );
    graph.writeGraph( Settings.GRAPHS_PATH + "MDS_classicalMDS.dnv" );

    float width = GraphFunctions.getGraphWidth( graph, 0, false );

    new RandomLayout().runLayout( graph, 0, width );
    new FruchtermanReingold().runLayout( width, width, graph, 0.01f, 0, false, false );
    graph.writeGraph( Settings.GRAPHS_PATH + "MDS_FR.dnv" );
  }
View Full Code Here

Examples of org.gephi.layout.plugin.random.RandomLayout

            if (newGraphSize < getMinSize() || newGraphSize > graphSize * getMinCoarseningRate()) {
                break;
            }
        }

        Layout random = new RandomLayout(null, 1000);
        random.setGraphModel(graphModel);
        random.initAlgo();
        random.goAlgo();

        initYifanHu();
    }
View Full Code Here

Examples of prefuse.action.layout.RandomLayout

        nodeRenderer.setMaxImageDimensions(100,100);
       
        m_vis.setRendererFactory(new DefaultRendererFactory(nodeRenderer));
       
        ActionList init = new ActionList();
        init.add(new RandomLayout());
        init.add(new DataMountainSizeAction());
        m_vis.putAction("init", init);
       
        ActionList update = new ActionList();
        update.add(new DataMountainSizeAction());
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.