Package org.mapsforge.map.scalebar
Class ImperialUnitAdapter
- java.lang.Object
-
- org.mapsforge.map.scalebar.ImperialUnitAdapter
-
- All Implemented Interfaces:
DistanceUnitAdapter
public class ImperialUnitAdapter extends java.lang.Object implements DistanceUnitAdapter
-
-
Field Summary
Fields Modifier and Type Field Description static ImperialUnitAdapter
INSTANCE
static double
METER_FOOT_RATIO
static int
ONE_MILE
static int[]
SCALE_BAR_VALUES
-
Constructor Summary
Constructors Constructor Description ImperialUnitAdapter()
-
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 ImperialUnitAdapter INSTANCE
-
METER_FOOT_RATIO
public static final double METER_FOOT_RATIO
- See Also:
- Constant Field Values
-
ONE_MILE
public static final int ONE_MILE
- 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
-
-