Package org.openbp.cockpit.modeler.figures.process

Examples of org.openbp.cockpit.modeler.figures.process.FlowConnection.connectStart()


        if (connection.canConnectFigures(sourceSocketFigure, targetSocketFigure, 0) && sourceSocketFigure.getNodeSocket().getNode() != targetSocketFigure.getNodeSocket().getNode())
        {
          // We have two connection points.
          modeler.startUndo("Auto-connect sockets");

          connection.connectStart(sourceSocketFigure.connectorAt(0, 0));
          connection.connectEnd(targetSocketFigure.connectorAt(0, 0));
          modeler.getDrawing().add(connection);
          connection.layoutAndAdjustConnection();

          modeler.endUndo();
View Full Code Here


    Connector end = targetFigure.connectorAt(0, 0);

    link.unlink();

    FlowConnection flow = new FlowConnection(link, this);
    flow.connectStart(start);
    flow.connectEnd(end);

    return flow;
  }
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.