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

Examples of org.openbp.cockpit.modeler.figures.process.SocketFigure


    {
      return EVENT_IGNORED;
    }

    // Try the autoconnector
    SocketFigure newSocket = (SocketFigure) je.getObject();

    // Try to auto-connect the inserted node to the current node/socket.
    AutoConnector autoConnector = new AutoConnector(modeler, newSocket);
    autoConnector.autoConnectAll();
View Full Code Here


        for (FigureEnumeration nodeFigures = ((NodeFigure) f).figures(); nodeFigures.hasMoreElements();)
        {
          Figure nodeChild = nodeFigures.nextFigure();
          if (nodeChild instanceof SocketFigure)
          {
            SocketFigure socketFigure = (SocketFigure) nodeChild;

            int contentState = socketFigure.getContentState();
            contentState &= ~(AbstractTagFigure.CONTENT_FLOW | AbstractTagFigure.CONTENT_DATA);
            contentState |= stateUpdate;
            socketFigure.setContentState(contentState);
          }
        }
      }
    }
View Full Code Here

    {
      System.err.println("Missing target socket for control link '" + link.getQualifier() + "'");
      return null;
    }

    SocketFigure sourceFigure = (SocketFigure) source.getRepresentation();
    if (sourceFigure == null)
    {
      System.err.println("Control link source socket '" + source.getQualifier() + "' has no figure representation.");
      return null;
    }

    SocketFigure targetFigure = (SocketFigure) target.getRepresentation();
    if (targetFigure == null)
    {
      System.err.println("Control link target socket '" + target.getQualifier() + "' has no figure representation.");
      return null;
    }

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

    link.unlink();

    FlowConnection flow = new FlowConnection(link, this);
    flow.connectStart(start);
View Full Code Here

TOP

Related Classes of org.openbp.cockpit.modeler.figures.process.SocketFigure

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.