Examples of IPeService


Examples of org.eclipse.graphiti.services.IPeService

            || BusinessObjectUtil.containsElementOfType(context.getTargetContainer(), FlowElementsContainer.class);
  }

  @Override
  protected void hook(Activity activity, ContainerShape container, IAddContext context, int width, int height) {
    IPeService peService = Graphiti.getPeService();
    IGaService gaService = Graphiti.getGaService();

    Shape textShape = peService.createShape(container, false);
    MultiText text = gaService.createDefaultMultiText(getDiagram(), textShape, activity.getName());
    int padding = GraphicsUtil.TASK_IMAGE_SIZE;
    gaService.setLocationAndSize(text, 0, padding, width, height - padding);
    text.setStyle(StyleUtil.getStyleForText(getDiagram()));
    text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
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.