public abstract class GenericMapAttribute.GenericMapAttributeValues
extends java.lang.Object
GenericMapAttribute.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_PROJECTION
The default projection.
|
java.lang.Boolean |
dpiSensitiveStyle
Should the vector style definitions be adapted to the target DPI resolution? (Default: true)
|
java.lang.Boolean |
longitudeFirst
By default the normal axis order as specified in EPSG code will be used when parsing projections.
|
java.lang.String |
projection
The projection of the map.
|
java.lang.Double |
rotation
The rotation of the map.
|
java.lang.Boolean |
useAdjustBounds
Indicates if the map should adjust its bounds.
|
java.lang.Boolean |
useNearestScale
Indicates if the map should adjust its scale/zoom level to be equal to one of those defined in the configuration file.
|
| Constructor and Description |
|---|
GenericMapAttribute.GenericMapAttributeValues(Template template,
java.awt.Dimension mapSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Double |
getDpi()
Return the DPI value for the map.
|
double[] |
getDpiSuggestions() |
java.util.List<MapLayer> |
getLayers() |
java.awt.Dimension |
getMapSize() |
java.lang.String |
getProjection() |
protected abstract PArray |
getRawLayers()
Return the JSON layer definiton.
|
double |
getRequestorDPI() |
java.lang.Double |
getRotation() |
Template |
getTemplate() |
protected <T> T |
getValueOr(T value,
T defaultValue) |
ZoomLevels |
getZoomLevels() |
ZoomLevelSnapStrategy |
getZoomLevelSnapStrategy() |
java.lang.Boolean |
getZoomSnapGeodetic() |
java.lang.Double |
getZoomSnapTolerance() |
java.lang.Boolean |
isDpiSensitiveStyle() |
java.lang.Boolean |
isUseAdjustBounds()
Return true if requestData has useNearestScale and configuration has some zoom levels defined.
|
java.lang.Boolean |
isUseNearestScale()
Return true if requestData has useNearestScale and configuration has some zoom levels defined.
|
protected org.opengis.referencing.crs.CoordinateReferenceSystem |
parseProjection()
Parse the projection from a string.
|
void |
postConstruct()
Validate the values provided by the request data and construct MapBounds and parse the layers.
|
protected static final java.lang.String DEFAULT_PROJECTION
public java.lang.String projection
public java.lang.Double rotation
public java.lang.Boolean useNearestScale
isUseNearestScale()public java.lang.Boolean useAdjustBounds
isUseAdjustBounds()public java.lang.Boolean longitudeFirst
public java.lang.Boolean dpiSensitiveStyle
public GenericMapAttribute.GenericMapAttributeValues(Template template, java.awt.Dimension mapSize)
template - the template this map is part of.mapSize - the size of the map.public void postConstruct()
throws org.opengis.referencing.FactoryException
org.opengis.referencing.FactoryExceptionprotected final org.opengis.referencing.crs.CoordinateReferenceSystem parseProjection()
public abstract java.lang.Double getDpi()
protected abstract PArray getRawLayers()
getDpi().public java.util.List<MapLayer> getLayers()
public final Template getTemplate()
public final java.awt.Dimension getMapSize()
public java.lang.Double getRotation()
public java.lang.String getProjection()
public java.lang.Boolean isUseNearestScale()
public java.lang.Boolean isUseAdjustBounds()
public final java.lang.Boolean isDpiSensitiveStyle()
public ZoomLevels getZoomLevels()
public java.lang.Double getZoomSnapTolerance()
public ZoomLevelSnapStrategy getZoomLevelSnapStrategy()
public java.lang.Boolean getZoomSnapGeodetic()
public double[] getDpiSuggestions()
public double getRequestorDPI()
protected final <T> T getValueOr(T value,
T defaultValue)
T - A type.value - The value or null.defaultValue - The default value.