Changeset 32528 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetBase.java
- Timestamp:
- 2016-07-02T03:55:03+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetBase.java
r29388 r32528 1 // License: WTFPL. For details, see LICENSE file. 1 2 package iodb; 2 3 3 4 import java.util.Date; 4 5 import java.util.Map; 6 5 7 import org.openstreetmap.josm.data.coor.CoordinateFormat; 6 8 import org.openstreetmap.josm.data.coor.LatLon; … … 10 12 * and {@link CalibrationObject} classes and contains common fields 11 13 * like position, author and description. 12 * 14 * 13 15 * @author Zverik 14 16 * @license WTFPL … … 24 26 protected String abandonReason; 25 27 protected boolean flagged; 26 28 27 29 /** 28 30 * Initialize object with the basic information. It's offset location, author, date 29 31 * and description. 30 32 */ 31 public void setBasicInfo( 33 public void setBasicInfo(LatLon position, String author, String description, Date date) { 32 34 this.position = position; 33 35 this.author = author; … … 38 40 } 39 41 40 public void setId( long id) {42 public void setId(long id) { 41 43 this.offsetId = id; 42 44 } … … 60 62 } 61 63 62 public void setFlagged( 64 public void setFlagged(boolean flagged) { 63 65 this.flagged = flagged; 64 66 } … … 75 77 return abandonReason; 76 78 } 77 79 78 80 /** 79 81 * Check that {@link #getAbandonDate()} is not null. Note that … … 96 98 } 97 99 98 public void setDescription( 100 public void setDescription(String description) { 99 101 this.description = description; 100 102 } … … 103 105 return position; 104 106 } 105 106 public void putServerParams( 107 108 public void putServerParams(Map<String, String> map) { 107 109 map.put("lat", position.latToString(CoordinateFormat.DECIMAL_DEGREES)); 108 110 map.put("lon", position.lonToString(CoordinateFormat.DECIMAL_DEGREES)); … … 113 115 @Override 114 116 public String toString() { 115 return "ImageryOffsetBase{" + "position=" + position + ", date=" + date + ", author=" + author + ", description=" + description + ", abandonDate=" + abandonDate + '}'; 117 return "ImageryOffsetBase{" + "position=" + position + ", date=" + date + ", author=" + author + 118 ", description=" + description + ", abandonDate=" + abandonDate + '}'; 116 119 } 117 120 }
Note:
See TracChangeset
for help on using the changeset viewer.