Package org.mapsforge.map.scalebar
Class MetricUnitAdapter
- java.lang.Object
-
- org.mapsforge.map.scalebar.MetricUnitAdapter
-
- All Implemented Interfaces:
DistanceUnitAdapter
public class MetricUnitAdapter extends java.lang.Object implements DistanceUnitAdapter
-
-
Field Summary
Fields Modifier and Type Field Description static MetricUnitAdapter
INSTANCE
static int
ONE_KILOMETER
static int[]
SCALE_BAR_VALUES
-
Constructor Summary
Constructors Constructor Description MetricUnitAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getMeterRatio()
int[]
getScaleBarValues()
java.lang.String
getScaleText(int mapScaleValue)
-
-
-
Field Detail
-
INSTANCE
public static final MetricUnitAdapter INSTANCE
-
ONE_KILOMETER
public static final int ONE_KILOMETER
- See Also:
- Constant Field Values
-
SCALE_BAR_VALUES
public static final int[] SCALE_BAR_VALUES
-
-
Method Detail
-
getMeterRatio
public double getMeterRatio()
- Specified by:
getMeterRatio
in interfaceDistanceUnitAdapter
-
getScaleBarValues
public int[] getScaleBarValues()
- Specified by:
getScaleBarValues
in interfaceDistanceUnitAdapter
-
getScaleText
public java.lang.String getScaleText(int mapScaleValue)
- Specified by:
getScaleText
in interfaceDistanceUnitAdapter
-
-