Package org.eclipse.graphiti.mm.algorithms.styles

Examples of org.eclipse.graphiti.mm.algorithms.styles.LineStyle


            Boolean.toString(process.isTriggeredByEvent()));

    RoundedRectangle rectangle = (RoundedRectangle) Graphiti.getPeService()
            .getAllContainedPictogramElements(context.getPictogramElement()).iterator().next()
            .getGraphicsAlgorithm();
    LineStyle lineStyle = process.isTriggeredByEvent() ? LineStyle.DOT : LineStyle.SOLID;
    rectangle.setLineStyle(lineStyle);

    return true;
  }
View Full Code Here


      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

    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

TOP

Related Classes of org.eclipse.graphiti.mm.algorithms.styles.LineStyle

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.