Examples of SWTNanoGraphPanel


Examples of nl.nanoworks.nanograph.components.swt.SWTNanoGraphPanel

    private void screen2D(CTabFolder tabs, CTabItem item) {
        // Create the actual graphpanel
        ScrolledComposite sc = new ScrolledComposite(tabs, SWT.H_SCROLL | SWT.V_SCROLL);
        item.setControl(sc);
        SWTNanoGraphPanel panel = new SWTNanoGraphPanel(sc, SWT.DOUBLE_BUFFERED);
        sc.setContent(panel);
        panel.getNanoGraph().setDefaultNodeRenderer(new AtomRenderer());
        panel.getNanoGraph().setDefaultEdgeRenderer(new MoleculeVertexRenderer());
        panel.getNanoGraph().setDefaultDockingStrategy(new CenterDockingStrategy(AtomRenderer.DIAMETER));
        panel.setModel(model);
    }
View Full Code Here

Examples of org.nanograph.components.swt.SWTNanoGraphPanel

        // Create the ScrolledComposite to scroll horizontally and vertically
        ScrolledComposite sc = new ScrolledComposite(c, SWT.H_SCROLL | SWT.V_SCROLL);

        // Create the actual graphpanel
        gp = new SWTNanoGraphPanel(sc, SWT.DOUBLE_BUFFERED);
        ((SWTNanoGraphPanel) gp).setReduceColordepthOnZoom(true);

        initNanoGraph();

        sc.setContent((SWTNanoGraphPanel) gp);
View Full Code Here

Examples of org.nanograph.components.swt.SWTNanoGraphPanel

      // Create the ScrolledComposite to scroll horizontally and vertically
      ScrolledComposite sc = new ScrolledComposite(c, SWT.H_SCROLL | SWT.V_SCROLL);

      // Create the actual graphpanel
      gp = new SWTNanoGraphPanel(sc, SWT.DOUBLE_BUFFERED);
      ((SWTNanoGraphPanel) gp).setReduceColordepthOnZoom(true);

      initNanoGraph();

      sc.setContent((SWTNanoGraphPanel)gp);
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.