Package org.eclipse.graphiti.mm.algorithms

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


        changed = true;
      }
     
      if (containerHeight != size.getHeight()) {
        if (shapeGa instanceof Polyline) {
          final Polyline line = (Polyline) shapeGa;
         
          line.getPoints().set(2, getNewPoint(line, 2, containerHeight, gaService));
          line.getPoints().set(3, getNewPoint(line, 3, containerHeight, gaService));
         
          changed = true;
        }
        else if (shapeGa instanceof MultiText) {
          gaService.setHeight(shapeGa, containerHeight - 5);
View Full Code Here


    }
   
    {
      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()));
    }
   
    {
      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()));
    }

    {
      // add a chopbox anchor to the shape
      peCreateService.createChopboxAnchor(containerShape);
View Full Code Here

    }
   
    {
      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()));
    }
   
    {
      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()));
    }

    {
      // add a chopbox anchor to the shape
      peCreateService.createChopboxAnchor(containerShape);
View Full Code Here

        }
      }
    }
   
    IGaService gaService = Graphiti.getGaService();
    Polyline polyline = gaService.createPolyline(connection);
    polyline.setLineStyle(LineStyle.DOT);
    polyline.setLineWidth(2);
    polyline.setForeground(Graphiti.getGaService().manageColor(getDiagram(), IColorConstant.BLACK));

    // create link and wire it
    link(connection, association);

    return connection;
View Full Code Here

   
    final Rectangle rect = gaService.createInvisibleRectangle(containerShape);
    gaService.setLocationAndSize(rect, context.getX(), context.getY(), width, height);
   
    final Shape lineShape = peCreateService.createShape(containerShape, false);
    final Polyline line
      = gaService.createPolyline(lineShape
          , new int[] { commentEdge, 0, 0, 0, 0, height, commentEdge, height });
    line.setStyle(StyleUtil.getStyleForTask(getDiagram()));
    line.setLineWidth(2);
    gaService.setLocationAndSize(line, 0, 0, commentEdge, height);
   
    final Shape textShape = peCreateService.createShape(containerShape, false);
    final MultiText text = gaService.createDefaultMultiText(getDiagram(), textShape, annotation.getText());
    text.setStyle(StyleUtil.getStyleForTask(getDiagram()));
View Full Code Here

TOP

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

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.