Package com.google.devtools.depan.eclipse.visualization.layout

Examples of com.google.devtools.depan.eclipse.visualization.layout.LayoutGenerator


      String layoutName = getLayoutName(character);
      if (null == layoutName)
        break;

      System.out.println("Apply layout " + layoutName);
      LayoutGenerator layout = LayoutGenerators.getByName(layoutName);
      panel.applyLayout(layout);
      return true;

    default:
      break;
View Full Code Here


        @Override
        public void updateDrawingBounds(
            Rectangle2D drawing, Rectangle2D viewport) {
          // Don't layout nodes if no layout is defined
          LayoutGenerator selectedLayout = getSelectedLayout();
          if (null == selectedLayout ) {
            return;
          }

          // Run the layout process on all nodes in the view.
View Full Code Here

    if (!hasEditor()) {
      return;
    }

    try {
      LayoutGenerator layout = layoutChoices.getLayoutGenerator();
      getEditor().applyLayout(layout, layoutChoices.getRelationSet());
    } catch (IllegalArgumentException ex) {
      // bad layout. don't do anything for the layout, but still finish the
      // creation of the view.
      Logger logger = Logger.getLogger(SubLayoutTool.class.getName());
View Full Code Here

TOP

Related Classes of com.google.devtools.depan.eclipse.visualization.layout.LayoutGenerator

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.