Examples of BoundaryAnchor


Examples of org.eclipse.bpmn2.modeler.core.utils.AnchorUtil.BoundaryAnchor

    List<ContainerShape> bandContainers = getParticipantBandContainerShapes(choreographyContainer);
    Tuple<List<ContainerShape>, List<ContainerShape>> topAndBottom = getTopAndBottomBands(bandContainers);
    List<ContainerShape> shapesWithVisileMessages = new ArrayList<ContainerShape>();

    Map<AnchorLocation, BoundaryAnchor> boundaryAnchors = AnchorUtil.getBoundaryAnchors(choreographyContainer);
    BoundaryAnchor topBoundaryAnchor = boundaryAnchors.get(AnchorLocation.TOP);
    BoundaryAnchor bottomBoundaryAnchor = boundaryAnchors.get(AnchorLocation.BOTTOM);
    int topConnectionIndex = 0;
    int bottomConnectionIndex = 0;

    boolean hasTopMessage = false;
    EList<Connection> topConnections = topBoundaryAnchor.anchor.getOutgoingConnections();
View Full Code Here

Examples of org.eclipse.bpmn2.modeler.core.utils.AnchorUtil.BoundaryAnchor

    BPMNShape bpmnShape = BusinessObjectUtil.getFirstElementOfType(choreographyContainer, BPMNShape.class);
    Bounds bounds = bpmnShape.getBounds();
    int x = (int) ((bounds.getX() + bounds.getWidth() / 2) - (ENV_W / 2));

    Map<AnchorLocation, BoundaryAnchor> boundaryAnchors = AnchorUtil.getBoundaryAnchors(choreographyContainer);
    BoundaryAnchor topBoundaryAnchor = boundaryAnchors.get(AnchorLocation.TOP);
    BoundaryAnchor bottomBoundaryAnchor = boundaryAnchors.get(AnchorLocation.BOTTOM);

    for (Connection connection : topBoundaryAnchor.anchor.getOutgoingConnections()) {
      EObject container = connection.getEnd().eContainer();
      if (container instanceof PropertyContainer) {
        String property = peService.getPropertyValue((PropertyContainer) container, MESSAGE_LINK);
View Full Code Here

Examples of org.eclipse.bpmn2.modeler.core.utils.AnchorUtil.BoundaryAnchor

      @Override
      public void delete(IDeleteContext context) {
        ContainerShape envelope = (ContainerShape) context.getPictogramElement();
        Map<AnchorLocation, BoundaryAnchor> boundaryAnchors = AnchorUtil.getBoundaryAnchors(envelope);
        BoundaryAnchor topBoundaryAnchor = boundaryAnchors.get(AnchorLocation.TOP);
        BoundaryAnchor bottomBoundaryAnchor = boundaryAnchors.get(AnchorLocation.BOTTOM);
        modifyAffectedBands(topBoundaryAnchor);
        modifyAffectedBands(bottomBoundaryAnchor);
        super.delete(context);
      }
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.