Package org.eclipse.draw2d.graph

Examples of org.eclipse.draw2d.graph.NodeList


          source.height);
      bends.add(new AbsoluteBendpoint(rect.getBottom()));
    }

    // Create bend points for edge's virtual nodes (if any)
    NodeList nodes = edge.vNodes;
    if (nodes != null) {
      for (int i = 0; i < nodes.size(); i++) {
        Node node = nodes.getNode(i);

        // Check if edge was inverted (due to broken cycle)
        if (edge.isFeedback()) {
          bends.add(new AbsoluteBendpoint(node.x
              + GraphPart.MARGIN_SIZE, node.y
View Full Code Here


  }

  protected void applyBends(List bends, EdgeList edges) {
    for (int i = 0; i < edges.size(); i++) {
      Edge e = (Edge) edges.get(i);
      NodeList nodes = e.vNodes;
      if (nodes != null) {
        for (int j = 0; j < nodes.size(); j++) {
          Node vn = nodes.getNode(i);
          int x = vn.x;
          int y = vn.y;
          if (e.isFeedback()) {
            bends.add(new AbsoluteBendpoint(x, y + vn.height));
            bends.add(new AbsoluteBendpoint(x, y));
View Full Code Here

    ((Transition) getModel()).addPropertyChangeListener(this);
  }

  protected void applyGraphResults(CompoundDirectedGraph graph, Map<AbstractGraphicalEditPart, Object> map) {
    Edge e = (Edge) map.get(this);
    NodeList nodes = e.vNodes;
    PolylineConnection conn = (PolylineConnection) getConnectionFigure();

    if (nodes != null && !isManualLayout()) {
      List<AbsoluteBendpoint> bends = new ArrayList<AbsoluteBendpoint>();
      for (int i = 0; i < nodes.size(); i++) {
        Node vn = nodes.getNode(i);
        int x = vn.x;
        int y = vn.y;
        if (e.isFeedback()) {
          bends.add(new AbsoluteBendpoint(x, y + vn.height));
          bends.add(new AbsoluteBendpoint(x, y));
View Full Code Here

TOP

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

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.