Package org.eclipse.graphiti.services

Examples of org.eclipse.graphiti.services.IPeCreateService.createShape()


    }

    // SHAPE WITH TEXT
    {
      // create shape for text
      final Shape shape = peCreateService.createShape(containerShape, false);

      // create and set text graphics algorithm
      final Text text = gaService.createDefaultText(getDiagram(), shape, addedSubProcess.getName());
      text.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
      text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
View Full Code Here


      // create link and wire it
      link(containerShape, addedEvent);
    }

    {
      final Shape shape = peCreateService.createShape(containerShape, false);
      final Image image = gaService.createImage(shape, PluginImage.IMG_THROW_SIGNAL.getImageKey());
      image.setWidth(20);
      image.setHeight(20);
      gaService.setLocationAndSize(image, (width - 20) / 2, (height - 20) / 2, 20, 20);
    }
View Full Code Here

      // create link and wire it
      link(containerShape, addedGateway);
    }

    {
      final Shape shape = peCreateService.createShape(containerShape, false);
      final Image image = gaService.createImage(shape, PluginImage.IMG_GATEWAY_EVENT.getImageKey());
      image.setWidth(IMAGE_SIZE);
      image.setHeight(IMAGE_SIZE);

      gaService.setLocationAndSize(image, (width - IMAGE_SIZE) / 2, (height - IMAGE_SIZE) / 2, IMAGE_SIZE, IMAGE_SIZE);
View Full Code Here

    }

    // SHAPE WITH TEXT
    {
      // create shape for text
      final Shape shape = peCreateService.createShape(containerShape, false);

      // create and set text graphics algorithm
      final Text text = gaService.createDefaultText(getDiagram(), shape, addedSubProcess.getName());
      text.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
      text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
View Full Code Here

    }

    // SHAPE WITH TEXT
    {
      // create shape for text
      final Shape shape = peCreateService.createShape(containerShape, false);

      // create and set text graphics algorithm
      final Text text = gaService.createDefaultText(getDiagram(), shape, addedPool.getName());
      text.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
      text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
View Full Code Here

    }

    // SHAPE WITH TEXT
    {
      // create shape for text
      final Shape shape = peCreateService.createShape(containerShape, false);

      // create and set text graphics algorithm
      final Text text = gaService.createDefaultText(getDiagram(), shape, addedLane.getName());
      text.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
      text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
View Full Code Here

      // create link and wire it
      link(containerShape, addedGateway);
    }
   
    {
      final Shape shape = peCreateService.createShape(containerShape, false);
     
      final Polyline polyline = gaService.createPolyline(shape, new int[] { width - 10, 10, 10, height - 10 });
      polyline.setLineWidth(5);
      polyline.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
    }
View Full Code Here

      polyline.setLineWidth(5);
      polyline.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
    }
   
    {
      final Shape shape = peCreateService.createShape(containerShape, false);
      final Polyline polyline = gaService.createPolyline(shape, new int[] { 10, 10, width - 10, height - 10});
      polyline.setLineWidth(5);
      polyline.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
    }
View Full Code Here

      // create link and wire it
      link(containerShape, addedGateway);
    }
   
    {
      final Shape shape = peCreateService.createShape(containerShape, false);
     
      final Polyline polyline = gaService.createPolyline(shape, new int[] { 6, 19, width - 6, 19 });
      polyline.setLineWidth(5);
      polyline.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
    }
View Full Code Here

      polyline.setLineWidth(5);
      polyline.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
    }
   
    {
      final Shape shape = peCreateService.createShape(containerShape, false);
     
      final Polyline polyline = gaService.createPolyline(shape, new int[] { 18, 6, 18, height - 6 });
      polyline.setLineWidth(5);
      polyline.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
    }
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.