Package org.gephi.layout.api

Examples of org.gephi.layout.api.LayoutController


                        //Run the ForceAtlas layout
                        //The layout doesn't stop by itself
                        ForceAtlasLayout layout = Lookup.getDefault().lookup(ForceAtlas.class).buildLayout();
                        layout.resetPropertiesValues();
                        layout.setAdjustSizes(true);
                        LayoutController layoutController = Lookup.getDefault().lookup(LayoutController.class);
                        layoutController.setLayout(layout);
                        layoutController.executeLayout();
                    } else {
                        //Stop layout
                        LayoutController layoutController = Lookup.getDefault().lookup(LayoutController.class);
                        layoutController.stopLayout();
                    }
                }
            });
            panel.add(checkBox);
            return panel;
View Full Code Here

TOP

Related Classes of org.gephi.layout.api.LayoutController

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.