altosui: Display data for point nearest cursor in map view
[fw/altos] / altoslib / AltosMapPathPoint.java
index 5b46cb19cb58927f7bae2b10057869f5fdb5abcb..c23d8567bda162428833cdbdb6c4c3b2f81ea758 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -15,7 +16,7 @@
  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  */
 
-package org.altusmetrum.altoslib_10;
+package org.altusmetrum.altoslib_13;
 
 import java.io.*;
 import java.lang.Math;
@@ -24,6 +25,7 @@ import java.util.concurrent.*;
 
 public class AltosMapPathPoint {
        public AltosLatLon      lat_lon;
+       public double           time;
        public int              state;
 
        public int hashCode() {
@@ -42,8 +44,9 @@ public class AltosMapPathPoint {
                return lat_lon.equals(other.lat_lon) && state == other.state;
        }
 
-       public AltosMapPathPoint(AltosLatLon lat_lon, int state) {
+       public AltosMapPathPoint(AltosLatLon lat_lon, double time, int state) {
                this.lat_lon = lat_lon;
+               this.time = time;
                this.state = state;
        }
 }