Package net.sf.graphiti.model

Examples of net.sf.graphiti.model.Graph.outgoingEdgesOf()


    if (getModel() instanceof Vertex) {
      Vertex vertex = (Vertex) getModel();
      Graph parent = vertex.getParent();

      // we get the *output* dependencies of vertex
      Set<Edge> edges = parent.outgoingEdgesOf(vertex);

      // return the dependencies
      List dependencies = new ArrayList(edges);
      return dependencies;
    }
View Full Code Here


      String port = (String) edge
          .getValue(ObjectType.PARAMETER_TARGET_PORT);
      figure.addInputPort(port);
    }

    for (Edge edge : parent.outgoingEdgesOf(vertex)) {
      String port = (String) edge
          .getValue(ObjectType.PARAMETER_SOURCE_PORT);
      figure.addOutputPort(port);
    }
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.