Package org.geomajas.plugin.printing.client.template

Examples of org.geomajas.plugin.printing.client.template.PageSize


    DefaultTemplateBuilder builder = new DefaultTemplateBuilder();
    builder.setApplicationId(mapWidget.getApplicationId());
    builder.setMapModel(mapWidget.getMapModel());
    builder.setMarginX(20);
    builder.setMarginY(20);
    PageSize size = PageSize.getByName((String) sizeItem.getValue());
    if ("landscape".equals(orientationGroup.getValue())) {
      builder.setPageHeight(size.getWidth());
      builder.setPageWidth(size.getHeight());
    } else {
      builder.setPageHeight(size.getHeight());
      builder.setPageWidth(size.getWidth());
    }
    builder.setTitleText((String) titleItem.getValue());
    builder.setWithArrow((Boolean) arrowCheckbox.getValue());
    builder.setWithScaleBar((Boolean) scaleBarCheckbox.getValue());
    builder.setRasterDpi((Integer) rasterDpiSlider.getValue());
View Full Code Here


    DefaultTemplateBuilder builder = new DefaultTemplateBuilder();
    builder.setApplicationId(mapWidget.getApplicationId());
    builder.setMapModel(mapWidget.getMapModel());
    builder.setMarginX((int) PrintingLayout.templateMarginX);
    builder.setMarginY((int) PrintingLayout.templateMarginY);
    PageSize size = PageSize.getByName((String) sizeItem.getValue());
    if (LANDSCAPE.equals(orientationGroup.getValue())) {
      builder.setPageHeight(size.getWidth());
      builder.setPageWidth(size.getHeight());
    } else {
      builder.setPageHeight(size.getHeight());
      builder.setPageWidth(size.getWidth());
    }
    builder.setTitleText((String) titleItem.getValue());
    builder.setWithArrow((Boolean) arrowCheckbox.getValue());
    builder.setWithScaleBar((Boolean) scaleBarCheckbox.getValue());
    builder.setRasterDpi((Integer) rasterDpiSlider.getValue());
View Full Code Here

TOP

Related Classes of org.geomajas.plugin.printing.client.template.PageSize

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.