Changeset 35215 in osm for applications/editors/josm/plugins/infomode/src
- Timestamp:
- 2019-11-02T15:35:24+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
r34755 r35215 27 27 import org.openstreetmap.josm.data.coor.EastNorth; 28 28 import org.openstreetmap.josm.data.gpx.GpxTrack; 29 import org.openstreetmap.josm.data.gpx. GpxTrackSegment;29 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 30 30 import org.openstreetmap.josm.data.gpx.WayPoint; 31 31 import org.openstreetmap.josm.data.projection.ProjectionRegistry; … … 222 222 for (GpxTrack track : gpxL.data.tracks) { 223 223 boolean f = true; 224 sg: for ( GpxTrackSegment seg : track.getSegments()) {224 sg: for (IGpxTrackSegment seg : track.getSegments()) { 225 225 for (WayPoint S : seg.getWayPoints()) { 226 226 if (S.hasDate()) { … … 244 244 double maxD = mv.getDist100Pixel()/3; 245 245 for (GpxTrack track : gpxL.data.tracks) { 246 for ( GpxTrackSegment seg : track.getSegments()) {246 for (IGpxTrackSegment seg : track.getSegments()) { 247 247 oldWp = null; // next segment will have new previous point 248 248 for (WayPoint S : seg.getWayPoints()) { … … 268 268 Stroke oldStroke = g.getStroke(); 269 269 g.setStroke(new BasicStroke(10)); 270 for ( GpxTrackSegment seg : trk.getSegments()) {271 Point oldP = null, curP = null; // next segment will have new previous point270 for (IGpxTrackSegment seg : trk.getSegments()) { 271 Point oldP = null, curP = null; // next segment will have new previous point 272 272 for (WayPoint S : seg.getWayPoints()) { 273 273 curP = mv.getPoint(S.getEastNorth(ProjectionRegistry.getProjection())); -
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java
r34755 r35215 21 21 import org.openstreetmap.josm.data.SystemOfMeasurement; 22 22 import org.openstreetmap.josm.data.gpx.GpxTrack; 23 import org.openstreetmap.josm.data.gpx. GpxTrackSegment;23 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 24 24 import org.openstreetmap.josm.data.gpx.WayPoint; 25 25 import org.openstreetmap.josm.gui.MainApplication; … … 76 76 77 77 double tm = -1; 78 for ( GpxTrackSegment seg : trk.getSegments()) {78 for (IGpxTrackSegment seg : trk.getSegments()) { 79 79 for (WayPoint S : seg.getWayPoints()) { 80 80 if (S.getTime() > tm) { … … 86 86 for (GpxTrack track : tracks) { 87 87 boolean f = true; 88 sg: for ( GpxTrackSegment seg : track.getSegments()) {88 sg: for (IGpxTrackSegment seg : track.getSegments()) { 89 89 for (WayPoint S : seg.getWayPoints()) { 90 90 if (S.getTime() > tm) {
Note:
See TracChangeset
for help on using the changeset viewer.