Examples of manageFont()


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

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

            style.setFont(gaService.manageFont(diagram, DEFAULT_FONT, 8,
               false, true));
        }
        return style;
    }
View Full Code Here

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

    if (style == null) { // style not found - create new style
      style = gaService.createStyle(getStyleForEClass(diagram), styleId);
      // "overwrites" values from parent style
      style.setForeground(gaService.manageColor(diagram, E_CLASS_TEXT_FOREGROUND));
    }
    style.setFont(gaService.manageFont(diagram, DEFAULT_FONT, DEFAULT_FONT_SIZE, false, true));

    return style;
  }

  public static Style getStyleForPolygon(Diagram diagram) {
View Full Code Here

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

    MultiText text = gaService.createDefaultMultiText(getDiagram(), textDecorator);
    text.setStyle(StyleUtil.getStyleForTask((getDiagram())));
    text.setHorizontalAlignment(Orientation.ALIGNMENT_LEFT);
    text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
    if (OSUtil.getOperatingSystem() == OSEnum.Mac) {
      text.setFont(gaService.manageFont(getDiagram(), text.getFont().getName(), 11));
    }
   
    if(addConContext.getProperty("org.activiti.designer.connectionlabel") != null) {
      GraphicInfo labelLocation = (GraphicInfo) addConContext.getProperty("org.activiti.designer.connectionlabel");
      gaService.setLocation(text, (int)labelLocation.getX(), (int)labelLocation.getY());
View Full Code Here

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

      text.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
      text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
      text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
      Font font = null;
      if (OSUtil.getOperatingSystem() == OSEnum.Mac) {
        font = gaService.manageFont(getDiagram(), text.getFont().getName(), 11, false, true);
      } else {
        font = gaService.manageDefaultFont(getDiagram(), false, true);
      }
      text.setFont(font);
      gaService.setLocationAndSize(text, 0, 0, width, 20);
View Full Code Here

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

      text.setStyle(StyleUtil.getStyleForEvent(getDiagram()));
      text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
      text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
      Font font = null;
      if (OSUtil.getOperatingSystem() == OSEnum.Mac) {
        font = gaService.manageFont(getDiagram(), text.getFont().getName(), 11, false, true);
      } else {
        font = gaService.manageDefaultFont(getDiagram(), false, true);
      }
      text.setFont(font);
      gaService.setLocationAndSize(text, 0, 0, width, 20);
View Full Code Here

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

      text.setVerticalAlignment(Orientation.ALIGNMENT_MIDDLE);
      gaService.setLocationAndSize(text, 0, 0, 20, height);
      text.setAngle(-90);
      Font font = null;
      if (OSUtil.getOperatingSystem() == OSEnum.Mac) {
        font = gaService.manageFont(getDiagram(), text.getFont().getName(), 11, false, true);
      } else {
        font = gaService.manageDefaultFont(getDiagram(), false, true);
      }
      text.setFont(font);
View Full Code Here

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

      text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
      gaService.setLocationAndSize(text, 0, 0, 20, height);
      text.setAngle(-90);
      Font font = null;
      if (OSUtil.getOperatingSystem() == OSEnum.Mac) {
        font = gaService.manageFont(getDiagram(), text.getFont().getName(), 11, false, true);
      } else {
        font = gaService.manageDefaultFont(getDiagram(), false, true);
      }
      text.setFont(font);
View Full Code Here

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

    final Shape textShape = peCreateService.createShape(containerShape, false);
    final MultiText text = gaService.createDefaultMultiText(getDiagram(), textShape, annotation.getText());
    text.setStyle(StyleUtil.getStyleForTask(getDiagram()));
    text.setVerticalAlignment(Orientation.ALIGNMENT_TOP);
    if (OSUtil.getOperatingSystem() == OSEnum.Mac) {
      text.setFont(gaService.manageFont(getDiagram(), text.getFont().getName(), 11));
    }
    gaService.setLocationAndSize(text, 5, 5, width - 5, height - 5);
   
    // link both, the container as well as the text shape so direct editing works together
    // with updating and property handling
View Full Code Here

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

      final MultiText text = gaService.createDefaultMultiText(getDiagram(), shape, addedTask.getName());
      text.setStyle(StyleUtil.getStyleForTask(getDiagram()));
      text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
      text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
      if (OSUtil.getOperatingSystem() == OSEnum.Mac) {
        text.setFont(gaService.manageFont(getDiagram(), text.getFont().getName(), 11));
      }

      gaService.setLocationAndSize(text, 0, 20, width, 30);
    
      // create link and wire it
View Full Code Here

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

      text.setStyle(StyleUtil.getStyleForTask(getDiagram()));
      text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
      text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
      Font font = null;
      if (OSUtil.getOperatingSystem() == OSEnum.Mac) {
        font = gaService.manageFont(getDiagram(), text.getFont().getName(), 11, false, true);
      } else {
        font = gaService.manageDefaultFont(getDiagram(), false, true);
      }
      text.setFont(font);
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.