MapMeasureDependentRenderSize (API Reference)
Class MapMeasureDependentRenderSize
Represents a render size, described as map measure dependent values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDescribes a reason for failing to create aMapMeasureDependentRenderSize.static final classThrown when a problem occurs while trying to createMapMeasureDependentRenderSize. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MapMeasure.KindThe unit used for the key insizes.The dictionary describing the size (value) per map measure (key).final RenderSize.UnitThe unit used for the value insizes. -
Constructor Summary
ConstructorsConstructorDescriptionMapMeasureDependentRenderSize(MapMeasure.Kind measureKind, RenderSize.Unit sizeUnit, Map<Double, Double> sizes) Constructs aMapMeasureDependentRenderSizefrom given parameters.MapMeasureDependentRenderSize(RenderSize.Unit sizeUnit, double size) Constructs aMapMeasureDependentRenderSizefrom single size value which is constant across all map measures. -
Method Summary
-
Field Details
-
measureKind
The unit used for the key in
sizes. -
sizeUnit
The unit used for the value in
sizes. -
sizes
The dictionary describing the size (value) per map measure (key).
Units of keys and values are defined in
measureKindandsizeUnit.sizeswith a single entry indicates using a fixed size value across all map measures.
-
-
Constructor Details
-
MapMeasureDependentRenderSize
public MapMeasureDependentRenderSize(@NonNull MapMeasure.Kind measureKind, @NonNull RenderSize.Unit sizeUnit, @NonNull Map<Double, Double> sizes) throws MapMeasureDependentRenderSize.InstantiationExceptionConstructs a
MapMeasureDependentRenderSizefrom given parameters.Supplying
sizesmap with a single entry indicates using a fixed size value across all map measures.- Parameters:
measureKind-The unit used for the key in
sizes.sizeUnit-The unit used for the value in
sizes.sizes-The dictionary describing the size (value) per map measure (key).
- Throws:
MapMeasureDependentRenderSize.InstantiationException-Instantiation error if
sizesmap is empty or contains negative keys or values.
-
MapMeasureDependentRenderSize
public MapMeasureDependentRenderSize(@NonNull RenderSize.Unit sizeUnit, double size) throws MapMeasureDependentRenderSize.InstantiationException Constructs a
MapMeasureDependentRenderSizefrom single size value which is constant across all map measures.The given
sizevalue is stored insizesmap at key 0 andmeasureKindis set toMapMeasure.Kind.ZOOM_LEVEL.- Parameters:
sizeUnit-The unit used for the value in
size.size-The size independent of map measure. Must not be negative.
- Throws:
MapMeasureDependentRenderSize.InstantiationException-Instantiation error if
sizeis negative.
-
-
Method Details