Class MapMeasureDependentRenderSize
Class MapMeasureDependentRenderSize
- java.lang.Object
-
- com.here.sdk.mapview.MapMeasureDependentRenderSize
-
public final class MapMeasureDependentRenderSize extends java.lang.ObjectRepresents a render size, described as map measure dependent values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMapMeasureDependentRenderSize.InstantiationErrorCodeDescribes a reason for failing to create aMapMeasureDependentRenderSize.static classMapMeasureDependentRenderSize.InstantiationExceptionThrown when a problem occurs while trying to createMapMeasureDependentRenderSize.
-
Field Summary
Fields Modifier and Type Field Description MapMeasure.KindmeasureKindThe unit used for the key insizes.java.util.Map<java.lang.Double,java.lang.Double>sizesThe dictionary describing the size (value) per map measure (key).RenderSize.UnitsizeUnitThe unit used for the value insizes.
-
Constructor Summary
Constructors Constructor Description MapMeasureDependentRenderSize(MapMeasure.Kind measureKind, RenderSize.Unit sizeUnit, java.util.Map<java.lang.Double,java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
measureKind
@NonNull public final MapMeasure.Kind measureKind
The unit used for the key in
sizes.
-
sizeUnit
@NonNull public final RenderSize.Unit sizeUnit
The unit used for the value in
sizes.
-
sizes
@NonNull public final java.util.Map<java.lang.Double,java.lang.Double> 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 Detail
-
MapMeasureDependentRenderSize
public MapMeasureDependentRenderSize(@NonNull MapMeasure.Kind measureKind, @NonNull RenderSize.Unit sizeUnit, @NonNull java.util.Map<java.lang.Double,java.lang.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.InstantiationExceptionConstructs 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.
-
-