now supporting all gpx files with both tracks and routes.
[utils] / gps / src / main / java / org / wamblee / gpx / TrackStatistics.java
index 6c4df6cd59ff6cc9670ac49d8309c74b09c763a4..42c2039e3fad8411b95db686f0ef07c2234131eb 100644 (file)
@@ -3,6 +3,7 @@ package org.wamblee.gpx;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.OutputStream;
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -17,7 +18,7 @@ import org.wamblee.gps.geometry.Point;
 import org.wamblee.gps.geometry.ReferenceCoordinateSystem;
 import org.wamblee.gps.track.Track;
 
-public class TrackStatistics {
+public class TrackStatistics implements Serializable {
     
     private Track _track; 
     
@@ -30,7 +31,7 @@ public class TrackStatistics {
         XYSeriesCollection dataset = createDataset(data, "height");
         JFreeChart chart = ChartFactory.createXYLineChart(
                 "Height Profile", 
-                "Distance(m)",
+                "Distance(km)",
                 "Height(m)",
                 dataset,
                 PlotOrientation.VERTICAL,