Changeset 10186 in josm


Ignore:
Timestamp:
2016-05-11T14:02:22+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #12813 - partial revert of r10175 - HDOP is unitless

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java

    r10181 r10186  
    101101        velocityScale = ColorScale.createHSBScale(256);
    102102        /** Colors (without custom alpha channel, if given) for HDOP painting. **/
    103         hdopScale = ColorScale.createHSBScale(256).makeReversed();
     103        hdopScale = ColorScale.createHSBScale(256).makeReversed().addTitle(tr("HDOP"));
    104104        dateScale = ColorScale.createHSBScale(256).addTitle(tr("Time"));
    105105        directionScale = ColorScale.createCyclicScale(256).setIntervalCount(4).addTitle(tr("Direction"));
     
    111111        SystemOfMeasurement som = SystemOfMeasurement.getSystemOfMeasurement();
    112112        velocityScale.addTitle(tr("Velocity, {0}", som.speedName));
    113         hdopScale.addTitle(tr("HDOP, {0}", som.aName));
    114113        if (Main.isDisplayingMapView() && oldSoM != null && newSoM != null) {
    115114            Main.map.mapView.repaint();
     
    567566    public void drawColorBar(Graphics2D g, MapView mv) {
    568567        int w = mv.getWidth();
    569         SystemOfMeasurement som = SystemOfMeasurement.getSystemOfMeasurement();
    570568        if (colored == ColorMode.HDOP) {
    571             hdopScale.drawColorBar(g, w-30, 50, 20, 100, som.aValue);
     569            hdopScale.drawColorBar(g, w-30, 50, 20, 100, 1.0);
    572570        } else if (colored == ColorMode.VELOCITY) {
     571            SystemOfMeasurement som = SystemOfMeasurement.getSystemOfMeasurement();
    573572            velocityScale.drawColorBar(g, w-30, 50, 20, 100, som.speedValue);
    574573        } else if (colored == ColorMode.DIRECTION) {
Note: See TracChangeset for help on using the changeset viewer.