Ignore:
Timestamp:
2011-08-07T09:08:29+02:00 (13 years ago)
Author:
jttt
Message:

Allow to specify custom pattern for marker text labels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarker.java

    r2907 r4282  
    5959
    6060    private PlayHeadMarker() {
    61         super(new LatLon(0.0,0.0), "",
     61        super(new LatLon(0.0,0.0), null,
    6262                Main.pref.get("marker.audiotracericon", "audio-tracer"),
    6363                null, -1.0, 0.0);
     
    171171                    tr("Warning"),
    172172                    JOptionPane.WARNING_MESSAGE
    173             );
     173                    );
    174174            endDrag(true);
    175175        } else {
     
    226226                        tr("Warning"),
    227227                        JOptionPane.WARNING_MESSAGE
    228                 );
     228                        );
    229229                endDrag(true);
    230230                return;
     
    241241                    tr("Error"),
    242242                    JOptionPane.ERROR_MESSAGE
    243             );
     243                    );
    244244            endDrag(true);
    245245        }
     
    247247            JOptionPane.showMessageDialog(
    248248                    Main.parent,
    249                     tr("Audio synchronized at point {0}.", ca.text),
     249                    tr("Audio synchronized at point {0}.", ca.getText()),
    250250                    tr("Information"),
    251251                    JOptionPane.INFORMATION_MESSAGE
    252             );
     252                    );
    253253            setCoor(ca.getCoor());
    254254            endDrag(false);
     
    259259                    tr("Error"),
    260260                    JOptionPane.ERROR_MESSAGE
    261             );
     261                    );
    262262            endDrag(true);
    263263        }
     
    294294            return;
    295295        double audioTime = recentlyPlayedMarker.time +
    296         AudioPlayer.position() -
    297         recentlyPlayedMarker.offset -
    298         recentlyPlayedMarker.syncOffset;
     296                AudioPlayer.position() -
     297                recentlyPlayedMarker.offset -
     298                recentlyPlayedMarker.syncOffset;
    299299        if (Math.abs(audioTime - time) < animationInterval)
    300300            return;
Note: See TracChangeset for help on using the changeset viewer.