Package org.eclipse.zest.layouts.algorithms

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


  /**
   *
   */
  private void initActions() {
    springLayoutAction = new LayoutAction(this.workbenchPart, new SpringLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING)) {

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


    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);
View Full Code Here

      edge.setFont(graphFont);
    }
   
    adjustEdgesAfterImpactAnalysis();
   
    this.setLayoutAlgorithm(new SpringLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING), true);
  }
View Full Code Here

      edge.setFont(graphFont);
    }
   
    adjustEdgesAfterImpactAnalysis();
   
    this.setLayoutAlgorithm(new SpringLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING), true);
  }
View Full Code Here

    // 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));
View Full Code Here

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

    {
        viewer = new GraphViewer( parent, SWT.NONE );
        viewer.setUseHashlookup( true );
        viewer.setContentProvider( new NeoGraphContentProvider( this ) );
        viewer.addDoubleClickListener( new NeoGraphDoubleClickListener() );
        viewer.setLayoutAlgorithm( new SpringLayoutAlgorithm( LayoutStyles.NO_LAYOUT_NODE_RESIZING ) );
        NeoGraphLabelProvider labelProvider = NeoGraphLabelProviderWrapper.getInstance();
        viewer.setLabelProvider( labelProvider );
        addListener( labelProvider );
        getSite().getPage().addSelectionListener( ID, new SelectionChangeHandler() );
        getSite().getPage().addSelectionListener( RelationshipTypeView.ID, new RelTypeSelectionChangeHandler() );
View Full Code Here

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

      }
View Full Code Here

TOP

Related Classes of org.eclipse.zest.layouts.algorithms.SpringLayoutAlgorithm

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.