Package org.mapsforge.map.scalebar
Class NauticalUnitAdapter
- java.lang.Object
-
- org.mapsforge.map.scalebar.NauticalUnitAdapter
-
- All Implemented Interfaces:
DistanceUnitAdapter
public class NauticalUnitAdapter extends java.lang.Object implements DistanceUnitAdapter
-
-
Field Summary
Fields Modifier and Type Field Description static NauticalUnitAdapterINSTANCEstatic intONE_MILEstatic int[]SCALE_BAR_VALUES
-
Constructor Summary
Constructors Constructor Description NauticalUnitAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetMeterRatio()int[]getScaleBarValues()java.lang.StringgetScaleText(int mapScaleValue)
-
-
-
Field Detail
-
INSTANCE
public static final NauticalUnitAdapter INSTANCE
-
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:
getMeterRatioin interfaceDistanceUnitAdapter
-
getScaleBarValues
public int[] getScaleBarValues()
- Specified by:
getScaleBarValuesin interfaceDistanceUnitAdapter
-
getScaleText
public java.lang.String getScaleText(int mapScaleValue)
- Specified by:
getScaleTextin interfaceDistanceUnitAdapter
-
-