Package org.geomajas.plugin.printing.component.impl

Examples of org.geomajas.plugin.printing.component.impl.ImageComponentImpl


  public PrintTemplate createTemplate(String pageSize, boolean landscape) {
    PageComponentImpl page = createInstance(PageComponentImpl.class);
    page.setSize(pageSize, landscape);
    page.setTag(PrintTemplate.PAGE);
    MapComponentImpl map = createMap();
    ImageComponentImpl northarrow = createArrow();
    ScaleBarComponentImpl bar = createBar();
    LabelComponentImpl title = createTitle();

    LegendComponentImpl legend = new LegendComponentImpl();
    legend.setTag(PrintTemplate.LEGEND);
View Full Code Here


    map.setTag(PrintTemplate.MAP);
    return map;
  }

  private ImageComponentImpl createArrow() {
    ImageComponentImpl northarrow = createInstance(ImageComponentImpl.class);
    northarrow.setImagePath("/images/northarrow.gif");
    northarrow.getConstraint().setAlignmentX(LayoutConstraintInfo.RIGHT);
    northarrow.getConstraint().setAlignmentY(LayoutConstraintInfo.TOP);
    northarrow.getConstraint().setMarginX(20);
    northarrow.getConstraint().setMarginY(20);
    northarrow.getConstraint().setWidth(10);
    northarrow.setTag(PrintTemplate.ARROW);
    return northarrow;
  }
View Full Code Here

TOP

Related Classes of org.geomajas.plugin.printing.component.impl.ImageComponentImpl

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.