Examples of RadialLayoutAlgorithm


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

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

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

        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.RadialLayoutAlgorithm

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

    radialLayoutAction = new LayoutAction(this.workbenchPart, new RadialLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING)) {

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

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

        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);

          SPRING.setIterations(1000);
View Full Code Here

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

    // GridLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING));
    // createLayoutMenuAction("Horizontal", new
    // HorizontalLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING));
    horizontalTree = createLayoutMenuAction("Horizontal Tree", new HorizontalTreeLayoutAlgorithm(
        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
     * RouteGraphLegendPopup(getEditor().getSite().getShell());
     * popup.open(); } };
     */

    selectAllAction = new Action("Select &All") {
      /*
       * s (non-Javadoc)
       *
       * @see org.eclipse.jface.action.Action#run()
       */
      @Override
      public void run() {
        // TODO
      }
    };

    showIconAction = new Action("Show &Icon", SWT.CHECK) {
      /*
       * (non-Javadoc)
       *
       * @see org.eclipse.jface.action.Action#run()
       */
      @Override
      public void run() {
        graphLabelProvider.setShowIcon(isChecked());
      }
    };
    showIconAction.setChecked(true);

    wrapLabelAction = new Action("&Wrap Label", SWT.CHECK) {
      /*
       * (non-Javadoc)
       *
       * @see org.eclipse.jface.action.Action#run()
       */
      @Override
      public void run() {
        graphLabelProvider.setWrapLabel(isChecked());
      }
    };
    wrapLabelAction.setChecked(true);

    radialLayoutAction = new Action("&Radial Layout", SWT.CHECK) {
      /*
       * (non-Javadoc)
       *
       * @see org.eclipse.jface.action.Action#run()
       */
      @Override
      public void run() {
        if (isChecked()) {
          viewer.setLayoutAlgorithm(new CompositeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING, //
              new LayoutAlgorithm[] { //
              new RadialLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING),
              new BigHorizontalShift(LayoutStyles.NO_LAYOUT_NODE_RESIZING), }));

        } else {
          viewer.setLayoutAlgorithm(new CompositeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING /*
           * |
 
View Full Code Here

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

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

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

  private void layoutVertical() {
    graph.setLayoutAlgorithm(new HorizontalTreeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING), true);
  }
 
  private void layoutRadial() {
    AbstractLayoutAlgorithm layout = new RadialLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING);
    graph.setLayoutAlgorithm(layout, true);
  }
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.