Examples of canConnectFigures()


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

      // Source and target socket determined
      if (sourceSocketFigure.canConnect() && targetSocketFigure.canConnect())
      {
        // Make sure the socket can connect and don't belong to the same node
        FlowConnection connection = new FlowConnection(modeler.getDrawing());
        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));
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.