Examples of ForceDirectedLayout


Examples of org.nanograph.drawing.layout.forcedirected.ForceDirectedLayout

         JButton forceDirectedLayout = new JButton("Auto Force Layout");

         forceDirectedLayout.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent ae) {
                 fd = new ForceDirectedLayout(gp);
                 gp.getNanoGraph().setLayout(fd);
             }
         });

         topPanel.add(forceDirectedLayout, FlowLayout.LEFT);
View Full Code Here

Examples of org.nanograph.drawing.layout.forcedirected.ForceDirectedLayout

    }

    public void selectionMove(GraphSelectionEvent e) {
        if (fd instanceof ForceDirectedLayout) {
            ForceDirectedLayout real = (ForceDirectedLayout) fd;
            real.resetDamper();
        }
    }
View Full Code Here

Examples of org.nanograph.drawing.layout.forcedirected.ForceDirectedLayout

    }
    if (ch == '1') {
      setRollingCameraEnabeld(!isRollingCameraEnabeld());
    }
    if (ch == 'l') {
      panel.getNanoGraph().setLayout(new ForceDirectedLayout(panel));
    }
    if (ch == 'c') {
      showCameras = !showCameras;
    }
    if (ch == 'd') {
View Full Code Here

Examples of org.nanograph.drawing.layout.forcedirected.ForceDirectedLayout

                // TODO Auto-generated method stub

            }

            public void widgetSelected(SelectionEvent arg0) {
                gp.getNanoGraph().setLayout(new ForceDirectedLayout(gp));
            }

        });

        button = new Button(buttonComposite, SWT.NONE);
View Full Code Here

Examples of org.nanograph.drawing.layout.forcedirected.ForceDirectedLayout

        // TODO Auto-generated method stub

      }

      public void widgetSelected(SelectionEvent arg0) {
        gp.getNanoGraph().setLayout(new ForceDirectedLayout(gp));
      }

      });

      button = new Button(buttonComposite, SWT.NONE);
View Full Code Here

Examples of prefuse.action.layout.graph.ForceDirectedLayout

        CollapsedSubtreeLayout subLayout = new CollapsedSubtreeLayout(tree);
        m_vis.putAction("subLayout", subLayout);
       
        // create the filtering and layout
        ActionList filter = new ActionList();
        filter.add(new ForceDirectedLayout(tree, true));
        filter.add(new TreeRootAction(tree));
        filter.add(fonts);
        filter.add(treeLayout);
        filter.add(subLayout);       
        filter.add(textColor);
View Full Code Here

Examples of prefuse.action.layout.graph.ForceDirectedLayout

        draw.add(new ColorAction(nodes, VisualItem.TEXTCOLOR, ColorLib.rgb(0,0,0)));
        draw.add(new ColorAction(edges, VisualItem.FILLCOLOR, ColorLib.gray(200)));
        draw.add(new ColorAction(edges, VisualItem.STROKECOLOR, ColorLib.gray(200)));
       
        ActionList animate = new ActionList(Activity.INFINITY);
        animate.add(new ForceDirectedLayout(graph));
        animate.add(fill);
        animate.add(new RepaintAction());
       
        // finally, we register our ActionList with the Visualization.
        // we can later execute our Actions by invoking a method on our
View Full Code Here

Examples of prefuse.action.layout.graph.ForceDirectedLayout

        ColorAction fill = new ColorAction(nodes,
                VisualItem.FILLCOLOR, ColorLib.rgb(200,200,255));
        fill.add("_fixed", ColorLib.rgb(255,100,100));
        fill.add("_highlight", ColorLib.rgb(255,200,125));
       
        ForceDirectedLayout fdl = new ForceDirectedLayout(graph);
        ForceSimulator fsim = fdl.getForceSimulator();
        fsim.getForces()[0].setParameter(0, -1.2f);
       
        ActionList animate = new ActionList(Activity.INFINITY);
        animate.add(fdl);
        animate.add(fill);
View Full Code Here

Examples of prefuse.action.layout.graph.ForceDirectedLayout

        colors.add(aFill);
       
        // now create the main layout routine
        ActionList layout = new ActionList(Activity.INFINITY);
        layout.add(colors);
        layout.add(new ForceDirectedLayout(GRAPH, true));
        layout.add(new AggregateLayout(AGGR));
        layout.add(new RepaintAction());
        m_vis.putAction("layout", layout);
       
        // set up the display
View Full Code Here

Examples of prefuse.action.layout.graph.ForceDirectedLayout

        ActionList preforce = new ActionList(1000);
        preforce.add(new DataMountainForceLayout(true));
        m_vis.putAction("preforce", preforce);

        // this will cause docs to move out of the way when dragging
        final ForceDirectedLayout fl = new DataMountainForceLayout(false);
        ActivityListener fReset = new ActivityAdapter() {
            public void activityCancelled(Activity a) {
                fl.reset();
             }
        };
        ActionList forces = new ActionList(Activity.INFINITY);
        forces.add(fl);
        forces.add(update);
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.