Package org.gvt.command

Examples of org.gvt.command.LayoutCommand


    {
      main.lockWithMessage("Performing layout ...");
      CompoundModel root = (CompoundModel)((ChsRootEditPart) main.getViewer().
          getRootEditPart().getChildren().get(0)).getModel();

      LayoutCommand command = new LayoutCommand(main, new SpringLayout(root));
      command.execute();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here


//      main.lockWithMessage("Performing layout (" + root.getNodes().size() + " nodes, " +
//        root.getEdges().size() + " edges) ...");

  //    LayoutCommand command = new LayoutCommand(main, new CoSELayout(root));
      LayoutCommand command = new LayoutCommand(viewer, new BiPaLayout(root));
      command.execute();

      main.makeDirty();
      viewer = null;
    }
    catch (Exception e)
View Full Code Here

TOP

Related Classes of org.gvt.command.LayoutCommand

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.