| 1 | 94c94
|
|---|
| 2 | < private static final DecimalFormat ONE_DECIMAL_PLACE = new DecimalFormat("0.0");
|
|---|
| 3 | ---
|
|---|
| 4 | > private static final DecimalFormat TWO_DECIMAL_PLACES = new DecimalFormat("0.00");
|
|---|
| 5 | 187c187
|
|---|
| 6 | < tr("The (compass) heading of the line segment being drawn."), 6, PROP_BACKGROUND_COLOR.get());
|
|---|
| 7 | ---
|
|---|
| 8 | > tr("The (compass) heading of the line segment being drawn."), 7, PROP_BACKGROUND_COLOR.get());
|
|---|
| 9 | 189c189
|
|---|
| 10 | < tr("The angle between the previous and the current way segment."), 6, PROP_BACKGROUND_COLOR.get());
|
|---|
| 11 | ---
|
|---|
| 12 | > tr("The angle between the previous and the current way segment."), 7, PROP_BACKGROUND_COLOR.get());
|
|---|
| 13 | 988c988
|
|---|
| 14 | < angleText.setText(a < 0 ? "--" : ONE_DECIMAL_PLACE.format(a) + " \u00B0");
|
|---|
| 15 | ---
|
|---|
| 16 | > angleText.setText(a < 0 ? "--" : TWO_DECIMAL_PLACES.format(a) + " \u00B0");
|
|---|
| 17 | 992c992
|
|---|
| 18 | < headingText.setText(h < 0 ? "--" : ONE_DECIMAL_PLACE.format(h) + " \u00B0");
|
|---|
| 19 | ---
|
|---|
| 20 | > headingText.setText(h < 0 ? "--" : TWO_DECIMAL_PLACES.format(h) + " \u00B0");
|
|---|
| 21 | 1001c1001
|
|---|
| 22 | < distText.setText(dist < 0 ? "--" : NavigatableComponent.getDistText(dist, ONE_DECIMAL_PLACE, 0.01));
|
|---|
| 23 | ---
|
|---|
| 24 | > distText.setText(dist < 0 ? "--" : NavigatableComponent.getDistText(dist, TWO_DECIMAL_PLACES, 0.001));
|
|---|