Ignore:
Timestamp:
2017-07-18T11:36:54+02:00 (7 years ago)
Author:
giackserva
Message:

[pt_assistant] #josm15033

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  
    102102                stopOrderMap.put(rm.getUniqueId(), sb.toString());
    103103                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);
    105108                } catch (NullPointerException ex) {
    106109                    // do nothing
     
    325328     * @param label label
    326329     */
    327     protected void drawStopLabel(OsmPrimitive primitive, String label) {
     330    protected void drawStopLabel(OsmPrimitive primitive, String label, Boolean platform) {
    328331
    329332        // find the point to which the stop visualization will be linked:
     
    333336
    334337        if (label != null && !label.equals("")) {
    335             g.setColor(Color.WHITE);
    336338            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            }
    339348        }
    340349
Note: See TracChangeset for help on using the changeset viewer.