Examples of applyDefaults()


Examples of com.avaje.ebean.cache.ServerCacheOptions.applyDefaults()

      try {
        Class<?> cls = Class.forName(beanType);
        CacheTuning cacheTuning = cls.getAnnotation(CacheTuning.class);
        if (cacheTuning != null) {
          ServerCacheOptions o = new ServerCacheOptions(cacheTuning);
          o.applyDefaults(defaultOptions);
          return o;
        }
      } catch (ClassNotFoundException e){
        // ignore
      }
View Full Code Here

Examples of org.geomajas.configuration.FeatureStyleInfo.applyDefaults()

            case MULTIPOLYGON:
            case POLYGON:
              selectStyle = mapInfo.getPolygonSelectStyle();
              break;
          }
          selectStyle.applyDefaults();
          vectorRasterizingInfo.setSelectionStyle(selectStyle);
        }
        layerInfo.getWidgetInfo().put(VectorLayerRasterizingInfo.WIDGET_KEY, vectorRasterizingInfo);
      } else if (layer instanceof RasterLayer) {
        RasterLayerRasterizingInfo rasterInfo = new RasterLayerRasterizingInfo();
View Full Code Here

Examples of org.geomajas.configuration.FeatureStyleInfo.applyDefaults()

        style.setFillColor(geometry.getStyle().getFillColor());
        style.setFillOpacity(geometry.getStyle().getFillOpacity());
        style.setStrokeColor(geometry.getStyle().getStrokeColor());
        style.setStrokeOpacity(geometry.getStyle().getStrokeOpacity());
        style.setStrokeWidth((int) geometry.getStyle().getStrokeWidth());
        style.applyDefaults();
        layer.setStyle(style);
        layer.setLayerType(geometry.getGeometry().getLayerType());
        layer.setLabel(geometry.getId());
        layer.setId(geometry.getId());
        mapRasterizingInfo.getExtraLayers().add(layer);
View Full Code Here

Examples of org.geomajas.configuration.FeatureStyleInfo.applyDefaults()

  public void addVectorLayer(SimpleFeatureType schema, String title, Rule rule, Font font) {
    JPanel panel = new JPanel();
    panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
    FeatureStyleInfo defaultStyle = new FeatureStyleInfo();
    defaultStyle.applyDefaults();
    int width = 16;
    int height = 16;
    int margin = 5;
    RuleIcon icon = new RuleIcon(schema, rule, width, height);
    icon.setBounds(margin, margin, margin + width, margin + height);
View Full Code Here

Examples of org.geomajas.configuration.FontStyleInfo.applyDefaults()

    mapRasterizingInfo.setScale(mapView.getCurrentScale());
    mapRasterizingInfo.setTransparent(true);
    LegendRasterizingInfo legendRasterizingInfo = new LegendRasterizingInfo();
    legendRasterizingInfo.setTitle("Legend");
    FontStyleInfo font = new FontStyleInfo();
    font.applyDefaults();
    legendRasterizingInfo.setFont(font);
    mapRasterizingInfo.setLegendRasterizingInfo(legendRasterizingInfo);
    mapInfo.getWidgetInfo().put(MapRasterizingInfo.WIDGET_KEY, mapRasterizingInfo);
    for (Layer<?> layer : map.getMapModel().getLayers()) {
      if (layer instanceof VectorLayer) {
View Full Code Here

Examples of org.geomajas.configuration.FontStyleInfo.applyDefaults()

  }

  private FontStyleInfo convertFont(FontInfo font) {
    FontStyleInfo fontStyle = new FontStyleInfo();
    if (font == null) {
      fontStyle.applyDefaults();
    } else {
      Map<String, String> cssMap = getLiteralMap(font.getCssParameterList());
      fontStyle.setFamily(cssMap.get("font-family"));
      if (cssMap.containsKey("font-size")) {
        fontStyle.setSize(Integer.parseInt(cssMap.get("font-size")));
View Full Code Here

Examples of org.jboss.cache.config.EvictionConfig.applyDefaults()

      NodeList regions = evictionElement.getElementsByTagName("region");
      for (int i = 0; i < regions.getLength(); i++)
      {
         Element regionConfig = (Element) regions.item(i);
         EvictionRegionConfig erc = getEvictionRegionConfig(regionConfig, evictionConfig.getDefaultEvictionRegionConfig(), false);
         evictionConfig.applyDefaults(erc);
         evictionRegionConfigs.add(erc);
      }
      evictionConfig.setEvictionRegionConfigs(evictionRegionConfigs);
      return evictionConfig;
   }
View Full Code Here

Examples of org.jboss.cache.config.EvictionConfig.applyDefaults()

      NodeList regions = evictionElement.getElementsByTagName("region");
      for (int i = 0; i < regions.getLength(); i++)
      {
         Element regionConfig = (Element) regions.item(i);
         EvictionRegionConfig erc = getEvictionRegionConfig(regionConfig, evictionConfig.getDefaultEvictionRegionConfig(), false);
         evictionConfig.applyDefaults(erc);
         evictionRegionConfigs.add(erc);
      }
      evictionConfig.setEvictionRegionConfigs(evictionRegionConfigs);
      return evictionConfig;
   }
View Full Code Here

Examples of org.jboss.cache.config.EvictionConfig.applyDefaults()

      NodeList regions = evictionElement.getElementsByTagName("region");
      for (int i = 0; i < regions.getLength(); i++)
      {
         Element regionConfig = (Element) regions.item(i);
         EvictionRegionConfig erc = getEvictionRegionConfig(regionConfig, evictionConfig.getDefaultEvictionRegionConfig(), false);
         evictionConfig.applyDefaults(erc);
         evictionRegionConfigs.add(erc);
      }
      evictionConfig.setEvictionRegionConfigs(evictionRegionConfigs);
      return evictionConfig;
   }
View Full Code Here

Examples of org.jboss.cache.config.EvictionConfig.applyDefaults()

      NodeList regions = evictionElement.getElementsByTagName("region");
      for (int i = 0; i < regions.getLength(); i++)
      {
         Element regionConfig = (Element) regions.item(i);
         EvictionRegionConfig erc = getEvictionRegionConfig(regionConfig, evictionConfig.getDefaultEvictionRegionConfig(), false);
         evictionConfig.applyDefaults(erc);
         evictionRegionConfigs.add(erc);
      }
      evictionConfig.setEvictionRegionConfigs(evictionRegionConfigs);
      return evictionConfig;
   }
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.