Package org.eclipse.graphiti.services

Examples of org.eclipse.graphiti.services.IGaService.manageColor()


          cs.getGraphicsAlgorithm().setForeground(gaService.manageColor(designEditor.getDiagram(), StyleUtil.getColorConstant("255,0,0")));
        } else {
          cs.getGraphicsAlgorithm().setLineVisible(false);
          cs.getGraphicsAlgorithm().setLineStyle(LineStyle.SOLID);
          cs.getGraphicsAlgorithm().setLineWidth(cs.getGraphicsAlgorithm().getLineWidth() - 3);
          cs.getGraphicsAlgorithm().setForeground(gaService.manageColor(designEditor.getDiagram(), StyleUtil.E_CLASS_FOREGROUND));
        }
       
        for (Shape shape : cs.getChildren()) {
          if (shape.getGraphicsAlgorithm() instanceof Text) {
            Text text = (Text) shape.getGraphicsAlgorithm();
View Full Code Here


            Text text = (Text) shape.getGraphicsAlgorithm();

            // now update node highlight
            if (highlight) {
              // set highlight
              text.setForeground(gaService.manageColor(designEditor.getDiagram(), StyleUtil.getColorConstant("255,0,0")));
            } else {
              // delete highlight
              text.setForeground(gaService.manageColor(designEditor.getDiagram(), StyleUtil.E_CLASS_TEXT_FOREGROUND));
            }
          }
View Full Code Here

            if (highlight) {
              // set highlight
              text.setForeground(gaService.manageColor(designEditor.getDiagram(), StyleUtil.getColorConstant("255,0,0")));
            } else {
              // delete highlight
              text.setForeground(gaService.manageColor(designEditor.getDiagram(), StyleUtil.E_CLASS_TEXT_FOREGROUND));
            }
          }
        }
      }       
    } catch (Exception e) {
View Full Code Here

    Style s = findStyle(diagram, CLASS_ID);
   
    if(s == null) {
      IGaService gaService = Graphiti.getGaService();
      s = gaService.createStyle(diagram, CLASS_ID);
      s.setForeground(gaService.manageColor(diagram, CLASS_FOREGROUND));
      s.setBackground(gaService.manageColor(diagram, CLASS_BACKGROUND));
      s.setLineWidth(1);
    }
   
    return s;
View Full Code Here

   
    if(s == null) {
      IGaService gaService = Graphiti.getGaService();
      s = gaService.createStyle(diagram, CLASS_ID);
      s.setForeground(gaService.manageColor(diagram, CLASS_FOREGROUND));
      s.setBackground(gaService.manageColor(diagram, CLASS_BACKGROUND));
      s.setLineWidth(1);
    }
   
    return s;
  }
View Full Code Here

    Style s = findStyle(parentStyle, TEXT_ID);
   
    if(s == null) {
      IGaService gaService = Graphiti.getGaService();
      s = gaService.createStyle(diagram, TEXT_ID);
      s.setForeground(gaService.manageColor(diagram, CLASS_TEXT_FOREGROUND));
    }
   
    return s;
  }
View Full Code Here

      gaService.setLocationAndSize(invisibleRectangle, context.getX(), context.getY(), width, height);

      // create and set visible rectangle inside invisible rectangle
      roundedRectangle = gaService.createRoundedRectangle(invisibleRectangle, 5, 5);
      roundedRectangle.setParentGraphicsAlgorithm(invisibleRectangle);
      roundedRectangle.setBackground(gaService.manageColor(getDiagram(), IColorConstant.WHITE));
      roundedRectangle.setLineStyle(LineStyle.DOT);
      gaService.setLocationAndSize(roundedRectangle, 0, 0, width, height);

      // create link and wire it
      link(containerShape, addedSubProcess);
View Full Code Here

    Style style = findStyle(diagram, styleId);
    if (style == null) { // style not found - create new style
      IGaService gaService = Graphiti.getGaService();
      style = gaService.createStyle(diagram, styleId);
      style.setForeground(gaService.manageColor(diagram, BPMN_CLASS_FOREGROUND));
      gaService.setRenderingStyle(style, getDefaultTaskColor(diagram));
      style.setLineWidth(20);
    }
    return style;
  }
View Full Code Here

    Style style = findStyle(diagram, styleId);
    if (style == null) { // style not found - create new style
      IGaService gaService = Graphiti.getGaService();
      style = gaService.createStyle(diagram, styleId);
      style.setForeground(gaService.manageColor(diagram, BPMN_CLASS_FOREGROUND));
      style.setBackground(gaService.manageColor(diagram, ColorConstant.WHITE));
      style.setLineWidth(20);
    }
    return style;
  }
View Full Code Here

    Style style = findStyle(diagram, styleId);
    if (style == null) { // style not found - create new style
      IGaService gaService = Graphiti.getGaService();
      style = gaService.createStyle(diagram, styleId);
      style.setForeground(gaService.manageColor(diagram, BPMN_CLASS_FOREGROUND));
      style.setBackground(gaService.manageColor(diagram, ColorConstant.WHITE));
      style.setLineWidth(20);
    }
    return style;
  }
 
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.