Package org.geomajas.configuration

Examples of org.geomajas.configuration.FontStyleInfo


      context.getVectorContext().hide(layer.getLabelGroup());
    }
  }

  private FontStyle getLabelFontstyle(VectorLayer layer) {
    FontStyleInfo info = layer.getLayerInfo().getNamedStyleInfo().getLabelStyle().getFontStyle();
    return new FontStyle(info);
  }
View Full Code Here


  }

  @Override
  protected LegendComponentInfo buildLegend() {
    LegendComponentInfo legend = super.buildLegend();
    FontStyleInfo style = new FontStyleInfo();
    style.setFamily(PrintingLayout.templateDefaultFontFamily);
    style.setStyle(PrintingLayout.templateDefaultFontStyle);
    style.setSize((int) PrintingLayout.templateDefaultFontSize);
    legend.setFont(style);
    legend.setMapId(mapModel.getMapInfo().getId());
    legend.setTag("legend");
    for (Layer layer : mapModel.getLayers()) {
      if (layer instanceof VectorLayer && layer.isShowing()) {
View Full Code Here

    return new ScaleBarComponentInfo();
  }

  protected LabelComponentInfo buildTitle() {
    LabelComponentInfo label = new LabelComponentInfo();
    FontStyleInfo style = new FontStyleInfo();
    style.setFamily(PrintingLayout.templateDefaultFontFamily);
    style.setStyle(PrintingLayout.templateDefaultFontStyle);
    style.setSize((int) PrintingLayout.templateDefaultFontSize);
    label.setFont(style);
    label.setBackgroundColor(PrintingLayout.templateDefaultBackgroundColor);
    label.setBorderColor(PrintingLayout.templateDefaultBorderColor);
    label.setFontColor(PrintingLayout.templateDefaultColor);
    label.getLayoutConstraint().setAlignmentY(LayoutConstraintInfo.TOP);
View Full Code Here

TOP

Related Classes of org.geomajas.configuration.FontStyleInfo

Copyright © 2018 www.massapicom. 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.