All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mapfish.print.attribute.map.PagingAttribute Maven / Gradle / Ivy

package org.mapfish.print.attribute.map;

import org.mapfish.print.attribute.ReflectiveAttribute;
import org.mapfish.print.config.Configuration;
import org.mapfish.print.config.Template;
import org.mapfish.print.parser.HasDefaultValue;

import java.util.List;

/**
 * 

Attribute that defines how a map is displayed across many pages.

* *

This is used by the paging processor.

* [[examples=paging]] * * @author Jesse on 8/27/2014. */ public final class PagingAttribute extends ReflectiveAttribute { @Override protected Class getValueType() { return PagingProcessorValues.class; } @Override public PagingProcessorValues createValue(final Template template) { return new PagingProcessorValues(); } @Override public void validate(final List validationErrors, final Configuration configuration) { // nothing to be done } /** * Values object for this attribute type. */ public static class PagingProcessorValues { /** * The scale denominator for each page/sub-map. */ public double scale; /** * The amount that each page/sub-map should overlap each other. *

* For example if the value is 1 and the projection of the map is degrees then the overlap will be 1 degree. *

*

* The default is to not have any overlap. *

*/ @HasDefaultValue public double overlap = 0; /** * Indicates how to render the area of interest on this sub-map. This * makes it easier to how the all the sub-maps fit together to for the complete map. Also if the map is rendered as a whole * in one part of the report one can easily see where in the complete map the sub-map fits, even without looking at the * labelling. *

* For options see: {@link org.mapfish.print.attribute.map.AreaOfInterest.AoiDisplay} *

*

* By default the rendering in the map attribute's * area of interest will be used *

*/ @HasDefaultValue public AreaOfInterest.AoiDisplay aoiDisplay; /** * If this is defined it will override the style used for rendering the Area Of Interest in the * main map attribute's Area of Interest definition. */ @HasDefaultValue public String aoiStyle = null; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy