Examples of TreeLayoutAlgorithm


Examples of org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm

        displayed.put(key, b);

        if (key == DEPENDENTS)
        {
            int style = LayoutStyles.NO_LAYOUT_NODE_RESIZING;
            viewer.setLayoutAlgorithm(b ? new TreeLayoutAlgorithm(style)
                : new RadialLayoutAlgorithm(style));
            redraw();
        }
        else if (key == OPTIONAL)
        {
View Full Code Here

Examples of org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm

        viewer.setContentProvider(contentProvider);
        viewer.setLabelProvider(new BundleGraphLabelProvider(this));
        viewer.addFilter(new BundleGraphViewFilter(this));

        int style = LayoutStyles.NO_LAYOUT_NODE_RESIZING;
        viewer.setLayoutAlgorithm(isDisplayed(DEPENDENTS) ? new TreeLayoutAlgorithm(style)
            : new RadialLayoutAlgorithm(style));
        viewer.addSelectionChangedListener(new BundleConnectionHighlighter(this));
        viewer.setInput(new BundleGraph());
    }
View Full Code Here

Examples of org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm

      public String getText() {
        return HORIZONTAL_SHIFT_LAYOUT_ACTION_ID;
      }
    };

    treeLayoutAction = new LayoutAction(this.workbenchPart, new TreeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING)) {

      /**
       * @see org.eclipse.jface.action.Action#getId()
       */
      @Override
 
View Full Code Here

Examples of org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm

    try {
      SwingUtilities.invokeAndWait(new Runnable() {

        public void run() {
          SPRING = new SpringLayoutAlgorithm(LayoutStyles.NONE);
          TREE_VERT = new TreeLayoutAlgorithm(LayoutStyles.NONE);
          TREE_HORIZ = new HorizontalTreeLayoutAlgorithm(LayoutStyles.NONE);
          RADIAL = new RadialLayoutAlgorithm(LayoutStyles.NONE);
          GRID = new GridLayoutAlgorithm(LayoutStyles.NONE);
          HORIZ = new HorizontalLayoutAlgorithm(LayoutStyles.NONE);
          VERT = new VerticalLayoutAlgorithm(LayoutStyles.NONE);
View Full Code Here

Examples of org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm

 
  private LayoutAlgorithm setLayout() {
    LayoutAlgorithm layout;
    layout = new CompositeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING,
        new  LayoutAlgorithm[] {
          new TreeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING),
          new HorizontalShift(LayoutStyles.NO_LAYOUT_NODE_RESIZING) });
    return layout;
  }
View Full Code Here

Examples of org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm

      // int style = LayoutStyles.NO_LAYOUT_NODE_RESIZING;
      // int style = LayoutStyles.NONE;
      if (horizontal) {
        layout = new HorizontalTreeLayoutAlgorithm(style);
      } else {
        layout = new TreeLayoutAlgorithm(style);
      }
    }
    return layout;
  }
View Full Code Here

Examples of org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm

        LayoutStyles.NO_LAYOUT_NODE_RESIZING));
    radialLayout = createLayoutMenuAction("Radial", new RadialLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING));
    springLayout = createLayoutMenuAction("Spring", new SpringLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING));
    // createLayoutMenuAction("Vertical", new
    // VerticalLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING));
    verticalTree = createLayoutMenuAction("Vertical Tree", new TreeLayoutAlgorithm(
        LayoutStyles.NO_LAYOUT_NODE_RESIZING));

    /*
     * showLegendAction = new Action("Show UI Legend") { public void run() {
     * RouteGraphLegendPopup popup = new
View Full Code Here

Examples of org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm

    public void run()
    {
        if ( isChecked() )
        {
            graphView.getViewer().setLayoutAlgorithm(
                    new TreeLayoutAlgorithm(
                            LayoutStyles.NO_LAYOUT_NODE_RESIZING ), true );
        }
    }
View Full Code Here

Examples of org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm

      }
    }));
  }
 
  private void layoutTree() {
    graph.setLayoutAlgorithm(new TreeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING), true);
  }
View Full Code Here

Examples of org.eclipse.zest.layouts.algorithms.TreeLayoutAlgorithm

  }
 
  public void setLayoutManager() {
      switch (layout) {
      case 1:
        graph.setLayoutAlgorithm(new TreeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING), true);
        layout++;
        break;
      case 2:
        graph.setLayoutAlgorithm(new SpringLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING), true);
        layout = 1;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.