/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/stationmap/GeoPair.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/stationmap/GeoPair.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 368 by torben, Wed Sep 30 13:32:20 2009 UTC revision 369 by torben, Wed Sep 30 16:40:48 2009 UTC
# Line 13  public class GeoPair implements Serializ Line 13  public class GeoPair implements Serializ
13                    
14          private double latitude;          private double latitude;
15          private double longitude;          private double longitude;
16            private String description;
17                                    
18          public GeoPair() {          public GeoPair() {
19                  latitude = 0.0;                  latitude = 0.0;
20                  longitude = 0.0;                  longitude = 0.0;
21                    description = "";
22          }          }
23                    
24          public GeoPair(double lat, double lng) {          public GeoPair(double lat, double lng) {
25                  latitude = lat;                  latitude = lat;
26                  longitude = lng;                  longitude = lng;
27                    description = "";
28            }
29            
30            public GeoPair(double lat, double lng, String desc) {
31                    latitude = lat;
32                    longitude = lng;
33                    description = desc;
34          }          }
35    
36          // conversion functions          // conversion functions
# Line 49  public class GeoPair implements Serializ Line 58  public class GeoPair implements Serializ
58          public void setLongitude(double longitude) {          public void setLongitude(double longitude) {
59                  this.longitude = longitude;                  this.longitude = longitude;
60          }          }
61            
62                    public String getDescription() {
63                    return description;
64            }
65    
66            public void setDescription(String description) {
67                    this.description = description;
68            }
69    
70                    
71  }  }

Legend:
Removed from v.368  
changed lines
  Added in v.369

  ViewVC Help
Powered by ViewVC 1.1.20