Examples of FixedConnectionAnchor


Examples of org.springframework.ide.eclipse.config.graph.parts.FixedConnectionAnchor

  protected Command getReconnectSourceCommand(ReconnectRequest request) {
    Activity source = getActivity();
    ReconnectFixedSourceCommand cmd = new ReconnectFixedSourceCommand(source.getDiagram().getTextEditor());
    ConnectionAnchor anchor = getActivityPart().getSourceConnectionAnchor(request);
    if (anchor instanceof FixedConnectionAnchor) {
      FixedConnectionAnchor fixedAnchor = (FixedConnectionAnchor) anchor;
      cmd.setSourceAnchor(fixedAnchor);
    }
    cmd.setTransition((Transition) request.getConnectionEditPart().getModel());
    cmd.setSource(source);
    return cmd;
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.parts.FixedConnectionAnchor

  protected Command getReconnectTargetCommand(ReconnectRequest request) {
    Activity target = getActivity();
    ReconnectFixedTargetCommand cmd = new ReconnectFixedTargetCommand(target.getDiagram().getTextEditor());
    ConnectionAnchor anchor = getActivityPart().getTargetConnectionAnchor(request);
    if (anchor instanceof FixedConnectionAnchor) {
      FixedConnectionAnchor fixedAnchor = (FixedConnectionAnchor) anchor;
      cmd.setTargetAnchor(fixedAnchor);
    }
    cmd.setTransition((Transition) request.getConnectionEditPart().getModel());
    cmd.setTarget(target);
    return cmd;
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.parts.FixedConnectionAnchor

    return closest;
  }

  protected void createConnectionAnchors() {
    for (int i = 0; i < inputs.size(); i++) {
      FixedConnectionAnchor in = new FixedConnectionAnchor(this, inputs.get(i));
      connectionAnchors.put(in.getConnectionLabel(), in);
      inputConnectionAnchors.addElement(in);
    }
    for (int i = 0; i < outputs.size(); i++) {
      FixedConnectionAnchor out = new FixedConnectionAnchor(this, outputs.get(i));
      connectionAnchors.put(out.getConnectionLabel(), out);
      outputConnectionAnchors.addElement(out);
    }
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.parts.FixedConnectionAnchor

  public Vector<FixedConnectionAnchor> getTargetConnectionAnchors() {
    return inputConnectionAnchors;
  }

  protected void layoutConnectionAnchors() {
    FixedConnectionAnchor in;
    FixedConnectionAnchor out;
    Rectangle rect = getBounds();
    int inputCapacity = inputs.size();
    int outputCapacity = outputs.size();
    if (direction == PositionConstants.EAST) {
      int height = rect.height;
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.parts.FixedConnectionAnchor

    return new BidirectionalConnectorBorder(direction, inputs.size(), outputs.size(), leftSide);
  }

  @Override
  protected void layoutConnectionAnchors() {
    FixedConnectionAnchor in;
    FixedConnectionAnchor out;
    List<String> topItems;
    List<String> bottomItems;
    Rectangle rect = getBounds();
    int capacity = inputs.size() + outputs.size();
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.parts.FixedConnectionAnchor

  protected Command getConnectionCompleteCommand(CreateConnectionRequest request) {
    if (request.getStartCommand() instanceof FixedConnectionCreateCommand) {
      FixedConnectionCreateCommand cmd = (FixedConnectionCreateCommand) request.getStartCommand();
      ConnectionAnchor anchor = getActivityPart().getTargetConnectionAnchor(request);
      if (anchor instanceof FixedConnectionAnchor) {
        FixedConnectionAnchor fixedAnchor = (FixedConnectionAnchor) anchor;
        cmd.setTargetAnchor(fixedAnchor);
      }
      else {
        cmd.setTargetAnchor(null);
      }
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.parts.FixedConnectionAnchor

    Activity source = getActivity();
    FixedConnectionCreateCommand cmd = getConnectionCreateCommand(source.getDiagram().getTextEditor(), style);
    if (cmd != null) {
      ConnectionAnchor anchor = getActivityPart().getSourceConnectionAnchor(request);
      if (anchor instanceof FixedConnectionAnchor) {
        FixedConnectionAnchor fixedAnchor = (FixedConnectionAnchor) anchor;
        cmd.setSourceAnchor(fixedAnchor);
      }
      cmd.setSource(source);
      request.setStartCommand(cmd);
    }
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.