Changeset 2243 in josm for trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNode.java
- Timestamp:
- 2009-10-04T12:07:16+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNode.java
r2242 r2243 4 4 import java.util.Date; 5 5 6 import org.openstreetmap.josm.data.coor.LatLon; 6 7 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 7 import org.openstreetmap.josm.data.coor.LatLon;8 8 9 9 … … 14 14 */ 15 15 public class HistoryNode extends HistoryOsmPrimitive { 16 private LatLon coor; 17 public HistoryNode(long id, long version, boolean visible, String user, long uid, long changesetId, Date timestamp, 18 double lat, double lon) { 16 /** the coordinates */ 17 18 private LatLon coords; 19 20 public HistoryNode(long id, long version, boolean visible, String user, long uid, long changesetId, Date timestamp, LatLon coords) { 19 21 super(id, version, visible, user, uid, changesetId, timestamp); 20 coor = new LatLon(lat, lon);22 setCoords(coords); 21 23 } 22 24 … … 26 28 } 27 29 28 public LatLon getCoordinate() { 29 return coor; 30 public LatLon getCoords() { 31 return coords; 32 } 33 34 public void setCoords(LatLon coords) { 35 this.coords = coords; 30 36 } 31 37 }
Note:
See TracChangeset
for help on using the changeset viewer.