Changeset 3804 in josm
- Timestamp:
- 2011-01-23T12:09:17+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintVisitor.java
r3803 r3804 523 523 524 524 /* Shows areas before non-areas */ 525 public void visitAll( DataSet data, boolean virtual, Bounds bounds) {525 public void visitAll(final DataSet data, boolean virtual, Bounds bounds) { 526 526 BBox bbox = new BBox(bounds); 527 527 this.data = data; … … 634 634 ((AreaElemStyle)style).getLineStyle().paintPrimitive(osm, paintSettings, painter, true, true); 635 635 } else { 636 style.paintPrimitive(osm, paintSettings, painter, true, true);636 style.paintPrimitive(osm, paintSettings, painter, data.isSelected(osm), true); 637 637 } 638 638 } … … 640 640 { 641 641 if(isZoomOk(style)) { 642 style.paintPrimitive(osm, paintSettings, painter, true, true);642 style.paintPrimitive(osm, paintSettings, painter, data.isSelected(osm), true); 643 643 } 644 644 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java
r3691 r3804 207 207 g.setFont(defaultFont); 208 208 } 209 if (selected )209 if (selected || member) 210 210 { 211 g.setColor ( member ? relationSelectedColor : selectedColor);212 g.drawRect 211 g.setColor(selected? selectedColor : relationSelectedColor); 212 g.drawRect(p.x-w/2-2, p.y-h/2-2, w+4, h+4); 213 213 } 214 214 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java
r3719 r3804 181 181 markColor = paintSettings.getHighlightColor(); 182 182 } else if (selected) { 183 markColor = member ? paintSettings.getRelationSelectedColor() : paintSettings.getSelectedColor(); 183 markColor = paintSettings.getSelectedColor(); 184 } else if (member) { 185 markColor = paintSettings.getRelationSelectedColor(); 184 186 } else if(w.isDisabled()) { 185 187 markColor = paintSettings.getInactiveColor(); -
trunk/src/org/openstreetmap/josm/gui/mappaint/SimpleNodeElemStyle.java
r3653 r3804 38 38 color = settings.getInactiveColor(); 39 39 } else if (selected) { 40 color = member ? settings.getRelationSelectedColor() : settings.getSelectedColor(); 40 color = settings.getSelectedColor(); 41 } else if (member) { 42 color = settings.getRelationSelectedColor(); 41 43 } else if (isConnection) { 42 44 if (n.isTagged()) {
Note:
See TracChangeset
for help on using the changeset viewer.