Package org.geomajas.plugin.printing.component.dto

Examples of org.geomajas.plugin.printing.component.dto.ImageComponentInfo


  }

  @Override
  protected ImageComponentInfo buildArrow() {
    if (isWithArrow()) {
      ImageComponentInfo northarrow = super.buildArrow();
      northarrow.setImagePath("/images/northarrow.gif");
      northarrow.getLayoutConstraint().setAlignmentX(LayoutConstraintInfo.RIGHT);
      northarrow.getLayoutConstraint().setAlignmentY(LayoutConstraintInfo.TOP);
      northarrow.getLayoutConstraint().setMarginX(20);
      northarrow.getLayoutConstraint().setMarginY(20);
      northarrow.getLayoutConstraint().setWidth(10);
      northarrow.setTag("arrow");
      return northarrow;
    } else {
      return null;
    }
  }
View Full Code Here


    map.addChild(buildArrow());
    return map;
  }

  protected ImageComponentInfo buildArrow() {
    ImageComponentInfo arrow = new ImageComponentInfo();
    return arrow;
  }
View Full Code Here

  }

  @Override
  protected ImageComponentInfo buildArrow() {
    if (isWithArrow()) {
      ImageComponentInfo northarrow = super.buildArrow();
      northarrow.setImagePath("/images/northarrow.gif");
      northarrow.getLayoutConstraint().setAlignmentX(LayoutConstraintInfo.RIGHT);
      northarrow.getLayoutConstraint().setAlignmentY(LayoutConstraintInfo.TOP);
      northarrow.getLayoutConstraint().setMarginX((float) PrintingLayout.templateMarginX);
      northarrow.getLayoutConstraint().setMarginY((float) PrintingLayout.templateMarginY);
      northarrow.getLayoutConstraint().setWidth((float) PrintingLayout.templateNorthArrowWidth);
      northarrow.setTag("arrow");
      return northarrow;
    } else {
      return null;
    }
  }
View Full Code Here

    }
    return map;
  }

  protected ImageComponentInfo buildArrow() {
    return new ImageComponentInfo();
  }
View Full Code Here

TOP

Related Classes of org.geomajas.plugin.printing.component.dto.ImageComponentInfo

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.