Package net.sf.graphiti.model

Examples of net.sf.graphiti.model.Edge


              + sourceId + "\" -> \"" + targetId
              + "\", the target vertex \"" + targetId
              + "\" could not be found.");
        }

        Edge edge = new Edge(type, source, target);
        parseParameters(edge, type, child.getFirstChild());
        graph.addEdge(edge);
      }

      child = child.getNextSibling();
View Full Code Here


  /**
   * Creates a new DependencyGef figure
   */
  @Override
  protected IFigure createFigure() {
    Edge edge = (Edge) getModel();
    return new EdgeFigure(edge);
  }
View Full Code Here

      Map<ObjectType, ObjectType> edgeTypes) {
    Set<Edge> edges = originalGraph.edgeSet();
    for (Edge edge : edges) {
      ObjectType newType = edgeTypes.get(edge.getType());
      if (newType != null) {
        edge = new Edge(edge);
        String sourceId = (String) edge.getSource().getValue(
            ObjectType.PARAMETER_ID);
        String targetId = (String) edge.getTarget().getValue(
            ObjectType.PARAMETER_ID);
        Vertex source = graph.findVertex(sourceId);
View Full Code Here

    this.type = type;
  }

  @Override
  public Object getNewObject() {
    return new Edge(type);
  }
View Full Code Here

    // Disconnect
    parentGraph = source.getParent();
    parentGraph.removeEdge(previousEdge);

    // Clone edge and assign ports
    edge = new Edge(previousEdge);

    if (edge.getSource() != source) {
      edge.setSource(source);

      String connection = edge.getSource().getValue(
View Full Code Here

  @Override
  public ConnectionAnchor getSourceConnectionAnchor(
      ConnectionEditPart connection) {
    VertexFigure figure = (VertexFigure) getFigure();
    Edge edge = (Edge) connection.getModel();
    Connection conn = (Connection) connection.getFigure();
    return figure.getSourceAnchor(edge, conn);
  }
View Full Code Here

  @Override
  public ConnectionAnchor getTargetConnectionAnchor(
      ConnectionEditPart connection) {
    VertexFigure figure = (VertexFigure) getFigure();
    Edge edge = (Edge) connection.getModel();
    Connection conn = (Connection) connection.getFigure();
    return figure.getTargetAnchor(edge, conn);
  }
View Full Code Here

TOP

Related Classes of net.sf.graphiti.model.Edge

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.