Package org.gvt.command

Examples of org.gvt.command.CreateConnectionCommand


  public BioPAXEdge(NodeModel source, NodeModel target)
  {
    assert source != null;
    assert target != null;
   
    CreateConnectionCommand ccc = new CreateConnectionCommand();
    ccc.setSource(source);
    ccc.setTarget(target);
    ccc.setConnection(this);
    ccc.execute();
  }
View Full Code Here


  public BioPAXEdge(NodeModel source, NodeModel target)
  {
    assert source != null;
    assert target != null;
   
    CreateConnectionCommand ccc = new CreateConnectionCommand();
    ccc.setSource(source);
    ccc.setTarget(target);
    ccc.setConnection(this);
    ccc.execute();
  }
View Full Code Here

      assert chisioSource != null && chisioTarget != null;

      // Create the edge as chisio does.
      EdgeModel chisioEdge = new EdgeModel();
      CreateConnectionCommand command = new CreateConnectionCommand();
      command.setSource(chisioSource);
      command.setTarget(chisioTarget);
      command.setConnection(chisioEdge);
      command.execute();
    }

    return chisioRoot;
  }
View Full Code Here

  /* (�� Javadoc)
   * @see org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy#getConnectionCompleteCommand(org.eclipse.gef.requests.CreateConnectionRequest)
   */
  protected Command getConnectionCompleteCommand(CreateConnectionRequest request)
  {
    CreateConnectionCommand command =
      (CreateConnectionCommand) request.getStartCommand();
    command.setTarget(getHost().getModel());

    return command;
  }
View Full Code Here

  /* (�� Javadoc)
   * @see org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy#getConnectionCreateCommand(org.eclipse.gef.requests.CreateConnectionRequest)
   */
  protected Command getConnectionCreateCommand(CreateConnectionRequest request)
  {
    CreateConnectionCommand command = new CreateConnectionCommand();
    command.setSource(getHost().getModel());
    command.setConnection(request.getNewObject());
    request.setStartCommand(command);
    return command;
  }
View Full Code Here

  public BioPAXEdge(NodeModel source, NodeModel target)
  {
    assert source != null;
    assert target != null;
   
    CreateConnectionCommand ccc = new CreateConnectionCommand();
    ccc.setSource(source);
    ccc.setTarget(target);
    ccc.setConnection(this);
    ccc.execute();
  }
View Full Code Here

TOP

Related Classes of org.gvt.command.CreateConnectionCommand

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.