protected MapComponentInfo buildMap() { return buildMap(null); }
@Override protected LegendComponentInfo buildLegend(Bbox bounds) { return buildLegend(); // fall-back }
public void registerLayerBuilder(PrintableLayerBuilder layerBuilder) { mapBuilder.registerLayerBuilder(layerBuilder); }
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; }
@Override protected ScaleBarComponentInfo buildScaleBar() { if (isWithScaleBar()) { ScaleBarComponentInfo bar = super.buildScaleBar(); bar.setTicNumber(3); bar.setTag("scalebar"); return bar; } else { return null; } }
protected PageComponentInfo buildPage() { PageComponentInfo page = new PageComponentInfo(); page.addChild(buildMap()); page.addChild(buildTitle()); page.setTag("page"); return page; }
@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; } }
protected PrintTemplateInfo buildTemplate() { PrintTemplateInfo template = new PrintTemplateInfo(); template.setPage(buildPage()); return template; }
@Override public PrintTemplateInfo buildTemplate() { PrintTemplateInfo template = super.buildTemplate(); template.setId(1L); template.setName("default"); return template; }
public PrintableMapBuilder() { layerBuilders.add(new RasterServerLayerBuilder()); layerBuilders.add(new VectorServerLayerBuilder()); }
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; }
@Override protected ScaleBarComponentInfo buildScaleBar() { if (isWithScaleBar()) { ScaleBarComponentInfo bar = super.buildScaleBar(); bar.setTicNumber(3); bar.setTag("scalebar"); return bar; } else { return null; } }
protected PageComponentInfo buildPage() { PageComponentInfo page = new PageComponentInfo(); page.addChild(buildMap()); page.addChild(buildTitle()); page.setTag("page"); return page; }
@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; } }
protected PrintTemplateInfo buildTemplate() { PrintTemplateInfo template = new PrintTemplateInfo(); template.setPage(buildPage()); return template; }
@Override public PrintTemplateInfo buildTemplate() { PrintTemplateInfo template = super.buildTemplate(); template.setId(1L); template.setName("default"); return template; }
@Override protected ScaleBarComponentInfo buildScaleBar() { if (isWithScaleBar()) { ScaleBarComponentInfo bar = super.buildScaleBar(); bar.setTicNumber(3); bar.setTag("scalebar"); return bar; } else { return null; } }
protected PageComponentInfo buildPage() { PageComponentInfo page = new PageComponentInfo(); page.addChild(buildMap()); page.addChild(buildTitle()); page.setTag("page"); return page; }
protected PrintTemplateInfo buildTemplate() { PrintTemplateInfo template = new PrintTemplateInfo(); template.setPage(buildPage()); return template; }
@Override public PrintTemplateInfo buildTemplate() { PrintTemplateInfo template = super.buildTemplate(); template.setId(1L); template.setName("default"); return template; }