Package net.sf.graphiti.ui.commands

Examples of net.sf.graphiti.ui.commands.EdgeCreateCommand


  }

  @Override
  protected Command getConnectionCompleteCommand(
      CreateConnectionRequest request) {
    EdgeCreateCommand command = (EdgeCreateCommand) request
        .getStartCommand();
    VertexEditPart vertexEditPart = (VertexEditPart) request
        .getTargetEditPart();
    command.setTarget((Vertex) (vertexEditPart.getModel()));
    return command;
  }
View Full Code Here


    return command;
  }

  @Override
  protected Command getConnectionCreateCommand(CreateConnectionRequest request) {
    EdgeCreateCommand command = new EdgeCreateCommand((Edge) request
        .getNewObject());
    VertexEditPart vertexEditPart = (VertexEditPart) request
        .getTargetEditPart();
    command.setSource((Vertex) (vertexEditPart.getModel()));
    request.setStartCommand(command);
    return command;
  }
View Full Code Here

TOP

Related Classes of net.sf.graphiti.ui.commands.EdgeCreateCommand

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.