Changeset 35221 in osm for applications/editors/josm/plugins/infomode/src/org
- Timestamp:
- 2019-11-03T22:22:25+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoMode.java
r35215 r35221 26 26 import org.openstreetmap.josm.data.Bounds; 27 27 import org.openstreetmap.josm.data.coor.EastNorth; 28 import org.openstreetmap.josm.data.gpx. GpxTrack;28 import org.openstreetmap.josm.data.gpx.IGpxTrack; 29 29 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 30 30 import org.openstreetmap.josm.data.gpx.WayPoint; … … 219 219 if (l instanceof GpxLayer && pos != null) { 220 220 GpxLayer gpxL = (GpxLayer) l; 221 Set< GpxTrack> toRemove = new HashSet<>();222 for ( GpxTrack track : gpxL.data.tracks) {221 Set<IGpxTrack> toRemove = new HashSet<>(); 222 for (IGpxTrack track : gpxL.data.tracks) { 223 223 boolean f = true; 224 224 sg: for (IGpxTrackSegment seg : track.getSegments()) { … … 241 241 double minDist = 1e9, d; 242 242 WayPoint wp = null, oldWp = null, prevWp = null; 243 GpxTrack trk = null;243 IGpxTrack trk = null; 244 244 double maxD = mv.getDist100Pixel()/3; 245 for ( GpxTrack track : gpxL.data.tracks) {245 for (IGpxTrack track : gpxL.data.tracks) { 246 246 for (IGpxTrackSegment seg : track.getSegments()) { 247 247 oldWp = null; // next segment will have new previous point -
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java
r35215 r35221 20 20 21 21 import org.openstreetmap.josm.data.SystemOfMeasurement; 22 import org.openstreetmap.josm.data.gpx. GpxTrack;22 import org.openstreetmap.josm.data.gpx.IGpxTrack; 23 23 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 24 24 import org.openstreetmap.josm.data.gpx.WayPoint; … … 31 31 class InfoPanel extends JPanel { 32 32 33 private Collection< GpxTrack> tracks;34 private GpxTrack trk;33 private Collection<IGpxTrack> tracks; 34 private IGpxTrack trk; 35 35 36 36 private JLabel label1 = new JLabel(); … … 73 73 public void actionPerformed(ActionEvent e) { 74 74 if (tracks == null) return; 75 Set< GpxTrack> toRemove = new HashSet<>();75 Set<IGpxTrack> toRemove = new HashSet<>(); 76 76 77 77 double tm = -1; … … 84 84 } 85 85 86 for ( GpxTrack track : tracks) {86 for (IGpxTrack track : tracks) { 87 87 boolean f = true; 88 88 sg: for (IGpxTrackSegment seg : track.getSegments()) { … … 102 102 } 103 103 104 void setData(WayPoint wp, GpxTrack trk, double vel, Collection<GpxTrack> tracks) {104 void setData(WayPoint wp, IGpxTrack trk, double vel, Collection<IGpxTrack> tracks) { 105 105 this.tracks = tracks; 106 106 this.trk = trk;
Note:
See TracChangeset
for help on using the changeset viewer.