Package diva.graph.layout

Examples of diva.graph.layout.IncrLayoutAdapter


     * and then set the model once the window is showing.
     */
    public void setModelPostDisplay(MutableGraphModel model, AppContext context) {
        BasicGraphController gc = new BasicGraphController();
        gc.addGraphViewListener(new IncrementalLayoutListener(
                new IncrLayoutAdapter(
                        new LevelLayout(new BasicLayoutTarget(gc))), null));
        context.getContentPane().add(new JGraph(new GraphPane(gc, model)));
    }
View Full Code Here


        // Anytime we add a port to an entity, we want to layout all the
        // ports within that entity.
        GlobalLayout layout = new EntityLayout();
        controller.addGraphViewListener(new IncrementalLayoutListener(
                new IncrLayoutAdapter(layout) {
                    public void nodeDrawn(Object node) {
                        layout(node);
                    }
                }, portFilter));
    }
View Full Code Here

        // Anytime we add a port to an entity, we want to layout all the
        // ports within that entity.
        GlobalLayout layout = new EntityLayout();
        controller.addGraphViewListener(new IncrementalLayoutListener(
                new IncrLayoutAdapter(layout) {
                    public void nodeDrawn(Object node) {
                        layout(node);
                    }
                }, portFilter));
    }
View Full Code Here

TOP

Related Classes of diva.graph.layout.IncrLayoutAdapter

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.