Ignore:
Timestamp:
2019-11-03T22:22:25+01:00 (5 years ago)
Author:
donvip
Message:

see #josm16796 - update to JOSM 15502 - use IGpxTrack in GpxData (patch by Bjoeni)

Location:
applications/editors/josm/plugins/livegps/src/livegps
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/livegps/src/livegps/AppendableGpxTrackSegment.java

    r33045 r35221  
    55
    66import org.openstreetmap.josm.data.Bounds;
    7 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     7import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    88import org.openstreetmap.josm.data.gpx.WayPoint;
     9import org.openstreetmap.josm.data.gpx.WithAttributes;
    910import org.openstreetmap.josm.tools.CopyList;
    1011
     
    1314 *
    1415 */
    15 public class AppendableGpxTrackSegment implements GpxTrackSegment {
     16public class AppendableGpxTrackSegment extends WithAttributes implements IGpxTrackSegment {
    1617
    1718    private WayPoint[] wayPoints = new WayPoint[16];
  • applications/editors/josm/plugins/livegps/src/livegps/LiveGpsLayer.java

    r34526 r35221  
    1515import org.openstreetmap.josm.data.coor.LatLon;
    1616import org.openstreetmap.josm.data.gpx.GpxData;
    17 import org.openstreetmap.josm.data.gpx.GpxTrack;
     17import org.openstreetmap.josm.data.gpx.IGpxTrack;
    1818import org.openstreetmap.josm.data.gpx.WayPoint;
    1919import org.openstreetmap.josm.gui.MainApplication;
     
    5151        attr.put("desc", "josm live gps");
    5252
    53         GpxTrack trackBeingWritten = new SingleSegmentGpxTrack(trackSegment, attr);
     53        IGpxTrack trackBeingWritten = new SingleSegmentGpxTrack(trackSegment, attr);
    5454        data.tracks.add(trackBeingWritten);
    5555
  • applications/editors/josm/plugins/livegps/src/livegps/SingleSegmentGpxTrack.java

    r33360 r35221  
    77
    88import org.openstreetmap.josm.data.Bounds;
    9 import org.openstreetmap.josm.data.gpx.GpxTrack;
    10 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     9import org.openstreetmap.josm.data.gpx.IGpxTrack;
     10import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1111import org.openstreetmap.josm.data.gpx.WithAttributes;
    1212
    13 public class SingleSegmentGpxTrack extends WithAttributes implements GpxTrack {
     13public class SingleSegmentGpxTrack extends WithAttributes implements IGpxTrack {
    1414
    15     private final GpxTrackSegment trackSegment;
     15    private final IGpxTrackSegment trackSegment;
    1616
    17     public SingleSegmentGpxTrack(GpxTrackSegment trackSegment, Map<String, Object> attributes) {
     17    public SingleSegmentGpxTrack(IGpxTrackSegment trackSegment, Map<String, Object> attributes) {
    1818        this.attr = Collections.unmodifiableMap(attributes);
    1919        this.trackSegment = trackSegment;
     
    3131
    3232    @Override
    33     public Collection<GpxTrackSegment> getSegments() {
     33    public Collection<IGpxTrackSegment> getSegments() {
    3434        return Collections.singleton(trackSegment);
    3535    }
Note: See TracChangeset for help on using the changeset viewer.