Changeset 35221 in osm for applications/editors/josm/plugins/livegps/src
- Timestamp:
- 2019-11-03T22:22:25+01:00 (5 years ago)
- 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 5 5 6 6 import org.openstreetmap.josm.data.Bounds; 7 import org.openstreetmap.josm.data.gpx. GpxTrackSegment;7 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 8 8 import org.openstreetmap.josm.data.gpx.WayPoint; 9 import org.openstreetmap.josm.data.gpx.WithAttributes; 9 10 import org.openstreetmap.josm.tools.CopyList; 10 11 … … 13 14 * 14 15 */ 15 public class AppendableGpxTrackSegment implementsGpxTrackSegment {16 public class AppendableGpxTrackSegment extends WithAttributes implements IGpxTrackSegment { 16 17 17 18 private WayPoint[] wayPoints = new WayPoint[16]; -
applications/editors/josm/plugins/livegps/src/livegps/LiveGpsLayer.java
r34526 r35221 15 15 import org.openstreetmap.josm.data.coor.LatLon; 16 16 import org.openstreetmap.josm.data.gpx.GpxData; 17 import org.openstreetmap.josm.data.gpx. GpxTrack;17 import org.openstreetmap.josm.data.gpx.IGpxTrack; 18 18 import org.openstreetmap.josm.data.gpx.WayPoint; 19 19 import org.openstreetmap.josm.gui.MainApplication; … … 51 51 attr.put("desc", "josm live gps"); 52 52 53 GpxTrack trackBeingWritten = new SingleSegmentGpxTrack(trackSegment, attr);53 IGpxTrack trackBeingWritten = new SingleSegmentGpxTrack(trackSegment, attr); 54 54 data.tracks.add(trackBeingWritten); 55 55 -
applications/editors/josm/plugins/livegps/src/livegps/SingleSegmentGpxTrack.java
r33360 r35221 7 7 8 8 import org.openstreetmap.josm.data.Bounds; 9 import org.openstreetmap.josm.data.gpx. GpxTrack;10 import org.openstreetmap.josm.data.gpx. GpxTrackSegment;9 import org.openstreetmap.josm.data.gpx.IGpxTrack; 10 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 11 11 import org.openstreetmap.josm.data.gpx.WithAttributes; 12 12 13 public class SingleSegmentGpxTrack extends WithAttributes implements GpxTrack {13 public class SingleSegmentGpxTrack extends WithAttributes implements IGpxTrack { 14 14 15 private final GpxTrackSegment trackSegment;15 private final IGpxTrackSegment trackSegment; 16 16 17 public SingleSegmentGpxTrack( GpxTrackSegment trackSegment, Map<String, Object> attributes) {17 public SingleSegmentGpxTrack(IGpxTrackSegment trackSegment, Map<String, Object> attributes) { 18 18 this.attr = Collections.unmodifiableMap(attributes); 19 19 this.trackSegment = trackSegment; … … 31 31 32 32 @Override 33 public Collection< GpxTrackSegment> getSegments() {33 public Collection<IGpxTrackSegment> getSegments() { 34 34 return Collections.singleton(trackSegment); 35 35 }
Note:
See TracChangeset
for help on using the changeset viewer.