Changeset 1276 in josm for trunk/src/org
- Timestamp:
- 2009-01-17T14:04:38+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
r1273 r1276 414 414 /* nodes drawn on second call */ 415 415 if(!(m.member instanceof Node)) 416 drawSelected (m.member, styles != null ? styles.get(m.member)416 drawSelectedMember(m.member, styles != null ? styles.get(m.member) 417 417 : null, true, true); 418 418 } … … 420 420 } 421 421 422 public void drawSelected (OsmPrimitive osm, ElemStyle style, Boolean area,422 public void drawSelectedMember(OsmPrimitive osm, ElemStyle style, Boolean area, 423 423 Boolean areaselected) 424 424 { … … 459 459 // draw multipolygon relations including their ways 460 460 // other relations are only drawn when selected 461 462 // we are in the "draw selected" phase 463 // TODO: is it necessary to check for r.selected? 461 464 if(r.selected && selectedCall) 462 465 { … … 466 469 && m.member instanceof Node) 467 470 { 468 drawSelected (m.member, styles != null ? styles.get(m.member) : null, true, true);471 drawSelectedMember(m.member, styles != null ? styles.get(m.member) : null, true, true); 469 472 } 470 473 } 471 474 return; 472 475 } 473 if (!drawMultipolygon || r.keys == null || !"multipolygon".equals(r.keys.get("type")))474 {475 if(r.selected)476 drawSelectedRelation(r);476 477 if (drawMultipolygon && r.keys != null && "multipolygon".equals(r.keys.get("type"))) 478 { 479 drawMultipolygon(r); 477 480 return; 478 481 } 479 482 483 if(r.selected) 484 drawSelectedRelation(r); 485 } 486 487 public void drawMultipolygon(Relation r) { 480 488 Collection<Way> inner = new LinkedList<Way>(); 481 489 Collection<Way> outer = new LinkedList<Way>(); … … 516 524 outer.add(w); 517 525 else if(r.selected) 518 drawSelected (m.member, styles != null ? styles.get(m.member) : null, true, true);526 drawSelectedMember(m.member, styles != null ? styles.get(m.member) : null, true, true); 519 527 } 520 528 } … … 703 711 if(r.selected) 704 712 { 705 drawSelected (wInner, innerStyle,713 drawSelectedMember(wInner, innerStyle, 706 714 !wayStyle.equals(innerStyle), wInner.selected); 707 715 } … … 738 746 if(r.selected) 739 747 { 740 drawSelected (wOuter, outerStyle, false, false);748 drawSelectedMember(wOuter, outerStyle, false, false); 741 749 } 742 750 else if(outerStyle instanceof AreaElemStyle) … … 1056 1064 /*** DISPLAY CACHED SEGMENTS (WAYS) NOW ***/ 1057 1065 displaySegments(); 1058 /*if(profiler)1059 {1060 System.out.format("DS : %4dms\n", (java.lang.System.currentTimeMillis()-profilerLast));1061 profilerLast = java.lang.System.currentTimeMillis();1062 }*/1063 1066 1064 1067 /*** NODES ***/ … … 1101 1104 1102 1105 displaySegments(null); 1103 /*if(profiler)1104 {1105 System.out.format("VirtualDS: %4dms\n", (java.lang.System.currentTimeMillis()-profilerLast));1106 profilerLast = java.lang.System.currentTimeMillis();1107 }*/1108 1106 } 1109 1107
Note:
See TracChangeset
for help on using the changeset viewer.