Package com.app55

Examples of com.app55.Gateway


        } else if (element instanceof EndEvent) {
           
            outgoing = ((EndEvent) element).getOutgoing();
        } else if (element instanceof Gateway) {
           
            Gateway gateway = ((Gateway) element);
            outgoing = gateway.getOutgoing();
        }
       
        return outgoing;
    }
View Full Code Here


            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.GATEWAY: {
            Gateway gateway = (Gateway) theEObject;
            T result = caseGateway(gateway);
            if (result == null)
                result = caseFlowNode(gateway);
            if (result == null)
                result = caseFlowElement(gateway);
View Full Code Here

        List<SequenceFlow> outgoing = getOutgoing(element);

        if (outgoing != null && !outgoing.isEmpty()) {
            boolean handled = false;
            if (element instanceof Gateway) {
                Gateway gateway = ((Gateway) element);
                if (gateway.getGatewayDirection() == GatewayDirection.DIVERGING) {
                   
                    handled = HandlerRegistry.getHandler(element).handle(element, manager);
                } else {
                    if (gateway instanceof ParallelGateway) {
                        handled = HandlerRegistry.getHandler(element).handle(element, manager);
View Full Code Here

        } else if (element instanceof EndEvent) {
           
            outgoing = ((EndEvent) element).getOutgoing();
        } else if (element instanceof Gateway) {
           
            Gateway gateway = ((Gateway) element);
            outgoing = gateway.getOutgoing();
        }
       
        return outgoing;
    }
View Full Code Here

    return intoDiagram || intoLane || intoParticipant || intoFlowELementContainer;
  }

  @Override
  public PictogramElement add(IAddContext context) {
    Gateway addedGateway = (Gateway) context.getNewObject();
    IGaService gaService = Graphiti.getGaService();
    IPeService peService = Graphiti.getPeService();

    int d = 2 * GraphicsUtil.GATEWAY_RADIUS;
    int p = GraphicsUtil.GATEWAY_TEXT_AREA;

    ContainerShape containerShape = peService.createContainerShape(context.getTargetContainer(), true);
    Rectangle rect = gaService.createInvisibleRectangle(containerShape);
    gaService.setLocationAndSize(rect, context.getX(), context.getY(), d, d + p);

    Shape gatewayShape = peService.createShape(containerShape, false);
    Polygon gateway = GraphicsUtil.createGateway(gatewayShape);
    StyleUtil.applyBGStyle(gateway, this);
    gaService.setLocationAndSize(gateway, 0, 0, d, d);
    decorateGateway(containerShape);

    Shape textShape = peService.createShape(containerShape, false);
    peService.setPropertyValue(textShape, UpdateBaseElementNameFeature.TEXT_ELEMENT, Boolean.toString(true));
    Text text = gaService.createDefaultText(getDiagram(), textShape, addedGateway.getName());
    text.setStyle(StyleUtil.getStyleForText(getDiagram()));
    text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
    text.setVerticalAlignment(Orientation.ALIGNMENT_TOP);
    gaService.setLocationAndSize(text, 0, d, d, p);

View Full Code Here

TOP

Related Classes of com.app55.Gateway

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.