Package org.eclipse.graphiti.services

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


        Style style = findStyle(diagram, styleId);

        IGaService gaService = Graphiti.getGaService();

         if (style == null) { // style not found - create new style
            style = gaService.createStyle(diagram, styleId);
            style.setForeground(gaService.manageColor(diagram,
                PE_FOREGROUND));

            style.setBackground(gaService.manageColor(diagram,
                PE_BACKGROUND));
View Full Code Here


        Style style = findStyle(diagram, styleId);

        IGaService gaService = Graphiti.getGaService();

         if (style == null) { // style not found - create new style
            style = gaService.createStyle(diagram, styleId);
            style.setForeground(gaService.manageColor(diagram,
                PE_PORT_FOREGROUND));

            style.setBackground(gaService.manageColor(diagram,
                PE_PORT_BACKGROUND));
View Full Code Here

        Style parentStyle = getStyleForPE(diagram);
        Style style = findStyle(parentStyle, styleId);

        if (style == null) { // style not found - create new style
            IGaService gaService = Graphiti.getGaService();
            style = gaService.createStyle(getStyleForPE(diagram), styleId);

            // "overwrites" values from parent style
            style.setForeground(gaService.manageColor(diagram,
                TEXT_FOREGROUND));
View Full Code Here

          Style style = findStyle(diagram, styleId);

          IGaService gaService = Graphiti.getGaService();

           if (style == null) { // style not found - create new style
              style = gaService.createStyle(diagram, styleId);
              style.setForeground(gaService.manageColor(diagram,
                  CI_FOREGROUND));

              style.setBackground(gaService.manageColor(diagram,
                  CI_BACKGROUND));
View Full Code Here

        Style style = findStyle(diagram, styleId);

        IGaService gaService = Graphiti.getGaService();

         if (style == null) { // style not found - create new style
            style = gaService.createStyle(diagram, styleId);
            style.setForeground(gaService.manageColor(diagram,
                LITERAL_FOREGROUND));

            style.setBackground(gaService.manageColor(diagram,
                LITERAL_BACKGROUND));
View Full Code Here

    Style style = findStyle(diagram, styleId);

    IGaService gaService = Graphiti.getGaService();

    if (style == null) { // style not found - create new style
      style = gaService.createStyle(diagram, styleId);
      style.setLineWidth(4);
      style.setForeground(gaService.manageColor(diagram,
          CONN_FOREGROUND));
    }
View Full Code Here

    Style style = findStyle(diagram, styleId);

    IGaService gaService = Graphiti.getGaService();
    if (style == null) { // style not found - create new style
      style = gaService.createStyle(diagram, styleId);
      style.setForeground(gaService.manageColor(diagram, E_CLASS_FOREGROUND));
      if (USE_GRADIENT_BACKGROUND) {
        gaService.setRenderingStyle(style, E_CLASS_GRADIENT);
      } else {
        style.setBackground(gaService.manageColor(diagram, E_CLASS_BACKGROUND));
View Full Code Here

    Style style = findStyle(diagram, styleId);

    IGaService gaService = Graphiti.getGaService();
    if (style == null) { // style not found - create new style
      style = gaService.createStyle(diagram, styleId);
      style.setForeground(gaService.manageColor(diagram, E_CLASS_FOREGROUND));
      if (USE_GRADIENT_BACKGROUND) {
        gaService.setRenderingStyle(style, E_CLASS_GRADIENT);
      } else {
        style.setBackground(gaService.manageColor(diagram, E_CLASS_BACKGROUND));
View Full Code Here

    Style style = findStyle(diagram, styleId);

    IGaService gaService = Graphiti.getGaService();
    if (style == null) { // style not found - create new style
      style = gaService.createStyle(diagram, styleId);
      style.setForeground(gaService.manageColor(diagram, E_CLASS_SHADOW_FOREGROUND));
      style.setBackground(gaService.manageColor(diagram, E_CLASS_SHADOW_BACKGROUND));
      style.setFilled(true);
      style.setLineWidth(2);
    }
View Full Code Here

    // this is a child style of the e-class-style
    Style parentStyle = getStyleForEClass(diagram);
    Style style = null;
    if (parentStyle == null) {
      style = gaService.createStyle(diagram, styleId);
    } else {
      style = findStyle(parentStyle, styleId);
    }

    if (style == null) { // style not found - create new 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.