Examples of createStyle()


Examples of nextapp.echo2.app.componentxml.PropertyLoader.createStyle()

            String type = layoutDataElement.getAttribute("type");

            // Load properties from XML into Style.
            PropertyLoader propertyLoader = PropertyLoader.forClassLoader(classLoader);
            Element propertiesElement = DomUtil.getChildElementByTagName(layoutDataElement, "properties");
            Style propertyStyle = propertyLoader.createStyle(propertiesElement, type);
           
            // Instantiate LayoutData instance.
            Class propertyClass = Class.forName(type, true, classLoader);
            LayoutData layoutData = (LayoutData) propertyClass.newInstance();
           
View Full Code Here

Examples of org.docx4j.wml.ObjectFactory.createStyle()

      String id, String name,
      String basedOn,
      FontScheme fontScheme) {
   
    ObjectFactory factory = Context.getWmlObjectFactory();
    Style style = factory.createStyle();
   
//    <w:style w:type="paragraph" w:styleId="Heading1">
    style.setType("paragraph");
    style.setStyleId(id);
   
View Full Code Here

Examples of org.docx4j.wml.ObjectFactory.createStyle()

  }
 
    protected static Style createVirtualStylesForDocDefaults(FontScheme fontScheme) {
     
    ObjectFactory factory = Context.getWmlObjectFactory();
    Style style = factory.createStyle();
     
      String ROOT_NAME = "DocDefaults";
     
      style.setStyleId(ROOT_NAME);
      style.setType("paragraph");
View Full Code Here

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

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_PORT_FOREGROUND));

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

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

        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

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,
                  CI_FOREGROUND));

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

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,
                LITERAL_FOREGROUND));

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

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.setLineWidth(4);
      style.setForeground(gaService.manageColor(diagram,
          CONN_FOREGROUND));
    }
View Full Code Here

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, 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
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.