Package nl.nanoworks.nanograph.components.swt

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

TOP

Related Classes of nl.nanoworks.nanograph.components.swt.SWTNanoGraphPanel

Copyright © 2018 www.massapicom. 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.