Changeset 2597 in osm for applications/editors
- Timestamp:
- 2007-04-19T19:31:48+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java
r2596 r2597 88 88 else 89 89 { 90 int orderNumber = 0; 90 91 for (Segment ls : w.segments) 91 92 { 92 if ((!ls.selected) && (isSegmentVisible(ls))) // selected already in good color 93 drawSegment(ls, w.selected ? 94 getPreferencesColor("selected", Color.YELLOW) : colour, 95 width); 93 orderNumber++; 94 if (isSegmentVisible(ls)) 95 { 96 if (!ls.selected) // selected already in good color 97 drawSegment(ls, w.selected ? 98 getPreferencesColor("selected", Color.YELLOW) : colour, 99 width); 100 if (!ls.incomplete && Main.pref.getBoolean("draw.segment.order_number")) 101 { 102 try 103 { 104 drawOrderNumber(ls, orderNumber); 105 } 106 catch (IllegalAccessError e) {} //SimplePaintVisitor::drawOrderNumber was private prior to rev #211 107 } 108 } 96 109 } 97 110 } … … 140 153 141 154 /** 142 * Checks i s the given segment is intthe visible area.155 * Checks if the given segment is in the visible area. 143 156 * NOTE: This will return true for a small number of non-visible 144 157 * segments. … … 164 177 { 165 178 g.setColor( getPreferencesColor ("text", Color.WHITE)); 179 Font defaultFont = g.getFont(); 166 180 g.setFont (new Font("Helvetica", Font.PLAIN, 8)); 167 181 g.drawString (name, p.x+w/2+2, p.y+h/2+2); 182 g.setFont(defaultFont); 168 183 } 169 184 if (n.selected)
Note:
See TracChangeset
for help on using the changeset viewer.