Ignore:
Timestamp:
2008-06-10T00:16:09+02:00 (18 years ago)
Author:
ramack
Message:

improve info on GpxLayers, closes #756 and also gives track length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java

    r646 r647  
    1313import org.openstreetmap.josm.data.coor.LatLon;
    1414
    15 public class WayPoint extends WithAttributes {
     15public class WayPoint extends WithAttributes implements Comparable{
    1616       
    1717        public final LatLon latlon;
     
    5050        }
    5151
     52    public int compareTo(Object other){
     53        if(other instanceof WayPoint){
     54            WayPoint w = (WayPoint)other;
     55            return (int)time - (int)w.time;
     56        }
     57        return 0;
     58    }
    5259}
Note: See TracChangeset for help on using the changeset viewer.