Examples of Ellipse


Examples of org.eclipse.graphiti.mm.algorithms.Ellipse

  private void clearGateway(PictogramElement element) {
    GraphicsUtil.clearGateway(element);
  }

  private void drawEventBased(ContainerShape container) {
    Ellipse outer = GraphicsUtil.createGatewayOuterCircle(container);
    outer.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
    Ellipse inner = GraphicsUtil.createGatewayInnerCircle(container);
    inner.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
    Polygon pentagon = GraphicsUtil.createGatewayPentagon(container);
    pentagon.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
    pentagon.setFilled(false);
  }
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.Ellipse

    pentagon.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
    pentagon.setFilled(false);
  }

  private void drawExclusiveEventBased(ContainerShape container) {
    Ellipse ellipse = GraphicsUtil.createGatewayOuterCircle(container);
    ellipse.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
    Polygon pentagon = GraphicsUtil.createGatewayPentagon(container);
    pentagon.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
    pentagon.setFilled(false);
  }
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.Ellipse

    pentagon.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
    pentagon.setFilled(false);
  }

  private void drawParallelMultipleEventBased(ContainerShape container) {
    Ellipse ellipse = GraphicsUtil.createGatewayOuterCircle(container);
    ellipse.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
    Polygon cross = GraphicsUtil.createEventGatewayParallelCross(container);
    cross.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
  }
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.Ellipse

    return pentagon;
  }

  public static Ellipse createGatewayInnerCircle(ContainerShape container) {
    Shape ellipseShape = peService.createShape(container, false);
    Ellipse ellipse = gaService.createEllipse(ellipseShape);
    gaService.setLocationAndSize(ellipse, 14, 14, 23, 23);
    ellipse.setFilled(false);
    ellipse.setLineWidth(1);
    peService.setPropertyValue(ellipseShape, DELETABLE_PROPERTY, "true");
    return ellipse;
  }
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.Ellipse

    return ellipse;
  }

  public static Ellipse createGatewayOuterCircle(ContainerShape container) {
    Shape ellipseShape = peService.createShape(container, false);
    Ellipse ellipse = gaService.createEllipse(ellipseShape);
    gaService.setLocationAndSize(ellipse, 12, 12, 27, 27);
    ellipse.setFilled(false);
    ellipse.setLineWidth(1);
    peService.setPropertyValue(ellipseShape, DELETABLE_PROPERTY, "true");
    return ellipse;
  }
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.Ellipse

  public static final int EVENT_SIZE = 36;
  public static final int EVENT_TEXT_AREA = 15;

  public static Ellipse createEventShape(Shape container) {
    Ellipse ellipse = gaService.createEllipse(container);
    gaService.setLocationAndSize(ellipse, 0, 0, EVENT_SIZE, EVENT_SIZE);
    return ellipse;
  }
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.Ellipse

    return gaService.createPolygon(shape, new int[] { r, 7, r + 10, r - 4, r + 7, r + 10, r - 7, r + 10, r - 10,
            r - 4 });
  }

  public static Ellipse createIntermediateEventCircle(Ellipse ellipse) {
    Ellipse circle = gaService.createEllipse(ellipse);
    gaService.setLocationAndSize(circle, 4, 4, EVENT_SIZE - 8, EVENT_SIZE - 8);
    circle.setLineWidth(1);
    circle.setFilled(false);
    return circle;
  }
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.Ellipse

    polygon.setLineWidth(1);
    return polygon;
  }

  public static Ellipse createEventTerminate(Shape terminateShape) {
    Ellipse ellipse = gaService.createEllipse(terminateShape);
    gaService.setLocationAndSize(ellipse, 6, 6, EVENT_SIZE - 12, EVENT_SIZE - 12);
    ellipse.setLineWidth(1);
    ellipse.setFilled(true);
    return ellipse;
  }
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.Ellipse

    gaService.setLocationAndSize(invisibleRect, context.getX(), context.getY(), EVENT_SIZE, EVENT_SIZE
            + EVENT_TEXT_AREA);

    Shape ellipseShape = peService.createShape(containerShape, false);
    peService.setPropertyValue(ellipseShape, EVENT_ELEMENT, EVENT_CIRCLE);
    Ellipse ellipse = createEventShape(ellipseShape);
    StyleUtil.applyBGStyle(ellipse, this);
    decorateEllipse(ellipse);

    Shape textShape = peService.createShape(containerShape, false);
    peService.setPropertyValue(textShape, UpdateBaseElementNameFeature.TEXT_ELEMENT, Boolean.toString(true));
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.Ellipse

    boolean importing = prop != null && (Boolean) prop;
    ContainerShape target = importing ? context.getTargetContainer() : (ContainerShape) context
            .getTargetContainer().eContainer();

    ContainerShape containerShape = peService.createContainerShape(target, true);
    Ellipse ellipse = gaService.createEllipse(containerShape);
    StyleUtil.applyBGStyle(ellipse, this);

    if (importing) { // if loading from DI then place according to context
      gaService.setLocationAndSize(ellipse, context.getX(), context.getY(), EVENT_SIZE, EVENT_SIZE);
    } else { // otherwise place it in the center of shape for user to adjust it
      GraphicsAlgorithm ga = context.getTargetContainer().getGraphicsAlgorithm();
      int x = ga.getX() + context.getX() - (EVENT_SIZE / 2);
      int y = ga.getY() + context.getY() - (EVENT_SIZE / 2);
      gaService.setLocationAndSize(ellipse, x, y, EVENT_SIZE, EVENT_SIZE);
    }

    Ellipse circle = GraphicsUtil.createIntermediateEventCircle(ellipse);
    circle.setStyle(StyleUtil.getStyleForClass(getDiagram()));
    createDIShape(containerShape, event);

    ChopboxAnchor anchor = peService.createChopboxAnchor(containerShape);
    anchor.setReferencedGraphicsAlgorithm(ellipse);
    AnchorUtil.addFixedPointAnchors(containerShape, ellipse);
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.