Examples of Ellipse


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

  }

  @Override
  protected Shape drawForEnd(DecorationAlgorithm algorithm, ContainerShape shape) {
    Shape terminateShape = Graphiti.getPeService().createShape(shape, false);
    Ellipse ellispe = GraphicsUtil.createEventTerminate(terminateShape);
    ellispe.setForeground(algorithm.manageColor(StyleUtil.CLASS_FOREGROUND));
    ellispe.setBackground(algorithm.manageColor(StyleUtil.CLASS_FOREGROUND));
    return terminateShape;
  }
View Full Code Here

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

  @Override
  public IAddFeature getAddFeature(IFeatureProvider fp) {
    return new AddEventFeature(fp) {
      @Override
      protected void decorateEllipse(Ellipse e) {
        Ellipse circle = GraphicsUtil.createIntermediateEventCircle(e);
        circle.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
      }
    };
  }
View Full Code Here

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

  @Override
  public IAddFeature getAddFeature(IFeatureProvider fp) {
    return new AddEventFeature(fp) {
      @Override
      protected void decorateEllipse(Ellipse e) {
        Ellipse circle = GraphicsUtil.createIntermediateEventCircle(e);
        circle.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
      }
    };
  }
View Full Code Here

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

        polyline.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
        polyline.setBackground(manageColor(IColorConstant.WHITE));
        polyline.setFilled(true);
        polyline.setLineWidth(1);

        Ellipse ellipse = gaService.createEllipse(startDecorator);
        ellipse.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
        ellipse.setBackground(manageColor(IColorConstant.WHITE));
        ellipse.setFilled(true);
        ellipse.setLineWidth(1);
        gaService.setSize(ellipse, 10, 10);
      }

      @Override
      protected Class<? extends BaseElement> getBoClass() {
View Full Code Here

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

    public boolean update(IUpdateContext context) {
      IPeService peService = Graphiti.getPeService();
      ContainerShape container = (ContainerShape) context.getPictogramElement();
      StartEvent event = (StartEvent) getBusinessObjectForPictogramElement(container);

      Ellipse ellipse = (Ellipse) peService.getAllContainedShapes(container).iterator().next()
          .getGraphicsAlgorithm();
      LineStyle style = event.isIsInterrupting() ? LineStyle.SOLID : LineStyle.DASH;
      ellipse.setLineStyle(style);

      peService.setPropertyValue(container, INTERRUPTING, Boolean.toString(event.isIsInterrupting()));
      return true;
    }
View Full Code Here

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

    BoundaryEvent event = (BoundaryEvent) getBusinessObjectForPictogramElement(context.getPictogramElement());

    Graphiti.getPeService().setPropertyValue(context.getPictogramElement(), BOUNDARY_EVENT_CANCEL,
            Boolean.toString(event.isCancelActivity()));

    Ellipse ellipse = (Ellipse) context.getPictogramElement().getGraphicsAlgorithm();
    Ellipse innerEllipse = (Ellipse) ellipse.getGraphicsAlgorithmChildren().get(0);
    LineStyle lineStyle = event.isCancelActivity() ? LineStyle.SOLID : LineStyle.DASH;

    ellipse.setLineStyle(lineStyle);
    innerEllipse.setLineStyle(lineStyle);

    return true;
  }
View Full Code Here

Examples of org.freehep.graphicsio.emf.gdi.Ellipse

            addTag(new SelectObject()); // 37 25
            addTag(new CreatePen()); // 38 26
            addTag(new CreateBrushIndirect()); // 39 27
            addTag(new DeleteObject()); // 40 28
            addTag(new AngleArc()); // 41 29
            addTag(new Ellipse()); // 42 2a
            addTag(new EMFRectangle()); // 43 2b
            addTag(new RoundRect()); // 44 2c
            addTag(new Arc()); // 45 2d
            addTag(new Chord()); // 46 2e
            addTag(new Pie()); // 47 2f
View Full Code Here

Examples of org.newdawn.slick.geom.Ellipse

        shapes = new ArrayList();
        rect = new Rectangle(10, 10, 100, 80);
        shapes.add(rect);
        roundRect = new RoundedRectangle(150, 10, 60, 80, 20);
        shapes.add(roundRect);
        ellipse = new Ellipse(350, 40, 50, 30);
        shapes.add(ellipse);
        circle = new Circle(470, 60, 50);
        shapes.add(circle);
        polygon = new Polygon(new float[]{550, 10, 600, 40, 620, 100, 570, 130});
        shapes.add(polygon);
View Full Code Here

Examples of org.pdfclown.documents.interaction.annotations.Ellipse

    rectangle.setFillColor(new DeviceRGBColor(1,0,0));
    rectangle.setText("Rectangle annotation");

    // Ellipse.
    composer.showText("Ellipse annotation:", new Point(35,385));
    Ellipse ellipse = new Ellipse(
      page,
      new Rectangle(50, 400, 100, 30)
      );
    ellipse.setFillColor(new DeviceRGBColor(0,0,1));
    ellipse.setText("Ellipse annotation");

    // Rubber stamp.
    composer.showText("Rubber stamp annotation:", new Point(35,435));
    RubberStamp rubberStamp = new RubberStamp(
      page,
View Full Code Here

Examples of org.rascalmpl.library.vis.figure.combine.containers.Ellipse

      PropertyValue<Boolean> recomp = Properties.produceMaybeComputedValue(Types.BOOL,c.get(0),properties,env);
      return new ComputeFigure(env, properties,  recomp, c.get(1), childPropsNext);
     
 
    case ELLIPSE:
      return new Ellipse( makeChild(env,c,properties,childPropsNext), properties );
         
    case FIGURESWITCH:
      PropertyValue<Integer> choice = Properties.produceMaybeComputedValue(Types.INT,c.get(0),properties,env);
      children = makeList(env,c.get(1),properties,childPropsNext);
      return new FigureSwitch(choice, children, properties);
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.