Package org.eclipse.graphiti.mm.algorithms

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


  @Override
  public IAddFeature getAddFeature(IFeatureProvider fp) {
    return new DefaultAddGatewayFeature(fp) {
      @Override
      protected void decorateGateway(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


  @Override
  public IAddFeature getAddFeature(IFeatureProvider fp) {
    return new DefaultAddGatewayFeature(fp) {
      @Override
      protected void decorateGateway(ContainerShape container) {
        Ellipse ellipse = GraphicsUtil.createGatewayOuterCircle(container);
        ellipse.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
        ellipse.setLineWidth(2);
      }
    };
  }
View Full Code Here

  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

    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

    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

    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

    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

  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

    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

    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

TOP

Related Classes of org.eclipse.graphiti.mm.algorithms.Ellipse

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.