protected MapComponentInfo buildMap() { MapComponentInfo map = new MapComponentInfo(); if (PrintingLayout.templateIncludeScaleBar) { map.addChild(buildScaleBar()); } if (PrintingLayout.templateIncludeLegend) { map.addChild(buildLegend()); } if (PrintingLayout.templateIncludeNorthArrow) { map.addChild(buildArrow()); } return map; }
protected MapComponentInfo buildMap() { MapComponentInfo map = new MapComponentInfo(); if (PrintingLayout.templateIncludeScaleBar) { map.addChild(buildScaleBar()); } if (PrintingLayout.templateIncludeLegend) { map.addChild(buildLegend()); } if (PrintingLayout.templateIncludeNorthArrow) { map.addChild(buildArrow()); } return map; }
protected MapComponentInfo buildMap(Bbox bounds) { MapComponentInfo map = new MapComponentInfo(); if (PrintingLayout.templateIncludeScaleBar) { map.addChild(buildScaleBar()); } if (PrintingLayout.templateIncludeLegend) { LegendComponentInfo legend; if (null == bounds) { legend = buildLegend(); } else { legend = buildLegend(bounds); } map.addChild(legend); } if (PrintingLayout.templateIncludeNorthArrow) { map.addChild(buildArrow()); } return map; }
@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; } }
@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; } }
@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; } }