org.openstreetmap.josm.gui
Class NavigatableComponent.SystemOfMeasurement
java.lang.Object
org.openstreetmap.josm.gui.NavigatableComponent.SystemOfMeasurement
- Enclosing class:
- NavigatableComponent
public static class NavigatableComponent.SystemOfMeasurement
- extends java.lang.Object
Method Summary |
java.lang.String |
getDistText(double dist)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
aValue
public final double aValue
bValue
public final double bValue
aName
public final java.lang.String aName
bName
public final java.lang.String bName
NavigatableComponent.SystemOfMeasurement
public NavigatableComponent.SystemOfMeasurement(double aValue,
java.lang.String aName,
double bValue,
java.lang.String bName)
- System of measurement. Currently covers only length units.
If a quantity x is given in m (x_m) and in unit a (x_a) then it translates as
x_a == x_m / aValue
getDistText
public java.lang.String getDistText(double dist)
JOSM