Package org.geomajas.configuration

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


  }

  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

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.