Changeset 32078 in osm for applications/editors/josm/plugins/mapillary/src
- Timestamp:
- 2016-02-19T23:36:27+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryAbstractImage.java
r32064 r32078 17 17 * 18 18 */ 19 public class MapillaryAbstractImage implements Comparable<MapillaryAbstractImage>{ 19 public class MapillaryAbstractImage implements Comparable<MapillaryAbstractImage> { 20 20 /** 21 21 * If two values for field ca differ by less than EPSILON both values are considered equal. -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java
r32064 r32078 318 318 } 319 319 // Draw sequence line 320 g.setColor(Color.WHITE); 321 g.setStroke(new BasicStroke(this == Main.map.mapView.getActiveLayer() ? 3 : 1)); 320 final MapillaryAbstractImage selectedImage = MapillaryLayer.getInstance().getData().getSelectedImage(); 321 String selectedImageKey = null; // Intentionally not null to avoid null-check before .equals() 322 if (selectedImage != null && selectedImage.getSequence() != null) { 323 selectedImageKey = selectedImage.getSequence().getKey(); 324 } 325 g.setStroke(new BasicStroke(this == Main.map.mapView.getActiveLayer() ? 3 : 2)); 322 326 for (MapillarySequence seq : getData().getSequences()) { 327 if (selectedImageKey != null && selectedImageKey.equals(seq.getKey())) { 328 g.setColor(Color.MAGENTA.brighter()); 329 } else { 330 g.setColor(Color.WHITE); 331 } 323 332 g.draw(MapViewGeometryUtil.getSequencePath(mv, seq)); 324 333 }
Note:
See TracChangeset
for help on using the changeset viewer.