Examples of createStyle()


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

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_SHADOW_FOREGROUND));
      style.setBackground(gaService.manageColor(diagram, E_CLASS_SHADOW_BACKGROUND));
      style.setFilled(true);
      style.setLineWidth(2);
    }
View Full Code Here

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

    // 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

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

    } else {
      style = findStyle(parentStyle, styleId);
    }

    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));
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, getColorConstant(PreferenceManager.getInstance().loadPreferenceAsString(PreferencesConstants.EDITOR_CONNECTION_COLOR))));
      style.setBackground(gaService.manageColor(diagram, getColorConstant(PreferenceManager.getInstance().loadPreferenceAsString(PreferencesConstants.EDITOR_CONNECTION_COLOR))));
      style.setLineWidth(1);
    }
    return style;
View Full Code Here

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

  public static Style getStyleForClass(Diagram diagram) {
    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);
    }
   
View Full Code Here

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

    Style parentStyle = getStyleForClass(diagram);
    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

Examples of org.geoserver.catalog.CatalogFactory.createStyle()

       
        cv = factory.createCoverage();
        cv.setName("cvName");
        cv.setStore(cs);
       
        s = factory.createStyle();
        s.setName( "styleName" );
        s.setFilename( "styleFilename" );
       
        l = factory.createLayer();
        l.setEnabled(true);
View Full Code Here

Examples of org.geoserver.catalog.CatalogFactory.createStyle()

   
    public void testStyle() throws Exception {
        Catalog catalog = new CatalogImpl();
        CatalogFactory cFactory = catalog.getFactory();
       
        StyleInfo s1 = cFactory.createStyle();
        s1.setName( "foo" );
        s1.setFilename( "foo.sld" );
       
        ByteArrayOutputStream out = out();
        persister.save( s1, out );
View Full Code Here

Examples of org.geoserver.catalog.CatalogFactory.createStyle()

        CoverageStoreInfo cs = cFactory.createCoverageStore();
        cs.setWorkspace( ws );
        cs.setName( "bar" );
        catalog.add( cs );
       
        StyleInfo s = cFactory.createStyle();
        s.setName( "style" );
        s.setFilename( "style.sld" );
        catalog.add(s);
    
        ByteArrayOutputStream out = out();
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.