- Timestamp:
- 2016-05-11T14:02:22+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r10181 r10186 101 101 velocityScale = ColorScale.createHSBScale(256); 102 102 /** 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")); 104 104 dateScale = ColorScale.createHSBScale(256).addTitle(tr("Time")); 105 105 directionScale = ColorScale.createCyclicScale(256).setIntervalCount(4).addTitle(tr("Direction")); … … 111 111 SystemOfMeasurement som = SystemOfMeasurement.getSystemOfMeasurement(); 112 112 velocityScale.addTitle(tr("Velocity, {0}", som.speedName)); 113 hdopScale.addTitle(tr("HDOP, {0}", som.aName));114 113 if (Main.isDisplayingMapView() && oldSoM != null && newSoM != null) { 115 114 Main.map.mapView.repaint(); … … 567 566 public void drawColorBar(Graphics2D g, MapView mv) { 568 567 int w = mv.getWidth(); 569 SystemOfMeasurement som = SystemOfMeasurement.getSystemOfMeasurement();570 568 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); 572 570 } else if (colored == ColorMode.VELOCITY) { 571 SystemOfMeasurement som = SystemOfMeasurement.getSystemOfMeasurement(); 573 572 velocityScale.drawColorBar(g, w-30, 50, 20, 100, som.speedValue); 574 573 } else if (colored == ColorMode.DIRECTION) {
Note:
See TracChangeset
for help on using the changeset viewer.