Changeset 3269 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-05-22T23:22:23+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintVisitor.java
r3167 r3269 184 184 if (fillAreas > dist) 185 185 { 186 painter.drawArea(getPolygon(w), (data.isSelected(w) ? paintSettings.getSelectedColor() : areaStyle.color), painter.get WayName(w));186 painter.drawArea(getPolygon(w), (data.isSelected(w) ? paintSettings.getSelectedColor() : areaStyle.color), painter.getAreaName(w)); 187 187 if(!w.isClosed()) { 188 188 putError(w, tr("Area style way is not closed."), true); … … 203 203 areaStyle.getLineStyle().paintPrimitive(way, paintSettings, painter, true); 204 204 if(area) { 205 painter.drawArea(getPolygon(way), (areaselected ? paintSettings.getSelectedColor() : areaStyle.color), painter.get WayName(way));205 painter.drawArea(getPolygon(way), (areaselected ? paintSettings.getSelectedColor() : areaStyle.color), painter.getAreaName(way)); 206 206 } 207 207 } else { … … 497 497 498 498 boolean selected = pd.selected || data.isSelected(r); 499 painter.drawArea(p, selected ? paintSettings.getSelectedColor() : areaStyle.color, null);499 painter.drawArea(p, selected ? paintSettings.getSelectedColor() : areaStyle.color, painter.getAreaName(r)); 500 500 visible = true; 501 501 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java
r3222 r3269 21 21 import org.openstreetmap.josm.Main; 22 22 import org.openstreetmap.josm.data.osm.Node; 23 import org.openstreetmap.josm.data.osm.OsmPrimitive; 23 24 import org.openstreetmap.josm.data.osm.Way; 24 25 import org.openstreetmap.josm.gui.NavigatableComponent; … … 396 397 397 398 //TODO Not a good place for this method 398 public String get WayName(Wayw) {399 public String getAreaName(OsmPrimitive w) { 399 400 String name = null; 400 401 if (w.hasKeys()) {
Note:
See TracChangeset
for help on using the changeset viewer.