Changeset 33454 in osm
- Timestamp:
- 2017-07-18T11:36:54+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui/PTAssistantPaintVisitor.java
r33453 r33454 102 102 stopOrderMap.put(rm.getUniqueId(), sb.toString()); 103 103 try { 104 drawStopLabel(rm.getMember(), sb.toString()); 104 if (PTStop.isPTStopPosition(rm)) 105 drawStopLabel(rm.getMember(), sb.toString(), false); 106 else if (PTStop.isPTPlatform(rm)) 107 drawStopLabel(rm.getMember(), sb.toString(), true); 105 108 } catch (NullPointerException ex) { 106 109 // do nothing … … 325 328 * @param label label 326 329 */ 327 protected void drawStopLabel(OsmPrimitive primitive, String label ) {330 protected void drawStopLabel(OsmPrimitive primitive, String label, Boolean platform) { 328 331 329 332 // find the point to which the stop visualization will be linked: … … 333 336 334 337 if (label != null && !label.equals("")) { 335 g.setColor(Color.WHITE);336 338 Font stringFont = new Font("SansSerif", Font.PLAIN, 24); 337 g.setFont(stringFont); 338 g.drawString(label, p.x + 20, p.y - 20); 339 if (platform) { 340 g.setColor(new Color(255, 255, 102)); 341 g.setFont(stringFont); 342 g.drawString(label, p.x + 20, p.y - 40); 343 } else { 344 g.setColor(Color.WHITE); 345 g.setFont(stringFont); 346 g.drawString(label, p.x + 20, p.y - 20); 347 } 339 348 } 340 349
Note:
See TracChangeset
for help on using the changeset viewer.