Package nl.nanoworks.nanograph.demo.caffeine

Examples of nl.nanoworks.nanograph.demo.caffeine.MoleculeVertexRenderer


    public Demo() {

        graph.setModel(model);
        graph.setDefaultNodeRenderer(new AtomRenderer());
        graph.setDefaultEdgeRenderer(new MoleculeVertexRenderer());
        graph.setDefaultDockingStrategy(new CenterDockingStrategy());

        Display display = new Display();

        Shell shell = new Shell(display);
View Full Code Here


        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.demo.caffeine.MoleculeVertexRenderer

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.