Package org.eclipse.draw2d.graph

Examples of org.eclipse.draw2d.graph.CompoundDirectedGraphLayout


      graph.setDirection(direction);

      part.addNodes(graph.nodes);
      part.addEdges(graph.edges);

      CompoundDirectedGraphLayout layout = new CompoundDirectedGraphLayout();
      layout.visit(graph);
    } catch (Exception e) {
      e.printStackTrace();
    }

    part.updateFigures();
View Full Code Here


  @Override
  public void execute(ICustomContext context) {
    final CompoundDirectedGraph graph = mapDiagramToGraph();
    graph.setDefaultPadding(new Insets(PADDING));
    new CompoundDirectedGraphLayout().visit(graph);
    mapGraphCoordinatesToDiagram(graph);
  }
View Full Code Here

  @Override
  public void execute(ICustomContext context) {
    final CompoundDirectedGraph graph = mapDiagramToGraph();
    graph.setDefaultPadding(new Insets(PADDING));
    CompoundDirectedGraphLayout layout = new CompoundDirectedGraphLayout();
    int direction = PreferenceManager.getInstance().loadPreferenceAsInt(PreferencesConstants.EDITOR_LAYOUT_ORIENTATION);
    graph.setDirection(direction);
    layout.visit(graph);
    mapGraphCoordinatesToDiagram(graph);
  }
View Full Code Here

      graph.setDirection(direction);
    }
    Map<AbstractGraphicalEditPart, Object> partsToNodes = new HashMap<AbstractGraphicalEditPart, Object>();
    diagram.contributeNodesToGraph(graph, null, partsToNodes);
    diagram.contributeEdgesToGraph(graph, partsToNodes);
    new CompoundDirectedGraphLayout().visit(graph);
    diagram.applyGraphResults(graph, partsToNodes);
    diagram.setBoundsOnModel();
  }
View Full Code Here

        CompoundDirectedGraph graph = new CompoundDirectedGraph();
        graph.setDirection(PositionConstants.SOUTH);
        Map partsToNodes = new HashMap();
        diagram.contributeNodesToGraph(graph, null, partsToNodes);
        diagram.contributeEdgesToGraph(graph, partsToNodes);
        new CompoundDirectedGraphLayout().visit(graph);
        diagram.applyGraphResults(graph, partsToNodes);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.graph.CompoundDirectedGraphLayout

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.