Changeset 7320 in josm for trunk/src/org
- Timestamp:
- 2014-07-20T22:57:24+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r7319 r7320 22 22 import javax.swing.JScrollPane; 23 23 import javax.swing.SwingUtilities; 24 24 25 import org.openstreetmap.josm.Main; 25 26 26 import org.openstreetmap.josm.actions.RenameLayerAction; 27 27 import org.openstreetmap.josm.actions.SaveActionBase; … … 29 29 import org.openstreetmap.josm.data.gpx.GpxConstants; 30 30 import org.openstreetmap.josm.data.gpx.GpxData; 31 import org.openstreetmap.josm.data.gpx.GpxRoute;32 31 import org.openstreetmap.josm.data.gpx.GpxTrack; 33 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;34 32 import org.openstreetmap.josm.data.gpx.WayPoint; 35 33 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; … … 64 62 65 63 private final GpxDrawHelper drawHelper; 66 64 67 65 public GpxLayer(GpxData d) { 68 66 super((String) d.attr.get("name")); … … 87 85 return drawHelper.getColor(getName(), ignoreCustom); 88 86 } 89 87 90 88 /** 91 89 * Returns a human readable string that shows the timespan of the given track … … 106 104 ts += tf.format(bounds[0]) + " - " + tf.format(bounds[1]); 107 105 } else { 108 DateFormat dtf = DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat. SHORT);106 DateFormat dtf = DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat.MEDIUM); 109 107 ts += dtf.format(bounds[0]) + " - " + dtf.format(bounds[1]); 110 108 } … … 290 288 } 291 289 } 292 293 } 294 290 291 } 292 295 293 private LinkedList<WayPoint> listVisibleSegments(Bounds box) { 296 294 WayPoint last = null; 297 295 LinkedList<WayPoint> visibleSegments = new LinkedList<>(); 298 296 299 297 ensureTrackVisibilityLength(); 300 298 for (Collection<WayPoint> segment : data.getLinesIterable(trackVisibility)) { 301 299 302 300 for(WayPoint pt : segment) 303 301 { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r7299 r7320 238 238 @Override 239 239 public void actionPerformed(ActionEvent arg0) { 240 SimpleDateFormat dateFormat = (SimpleDateFormat) DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat. SHORT);240 SimpleDateFormat dateFormat = (SimpleDateFormat) DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat.MEDIUM); 241 241 242 242 panel = new JPanel(); … … 362 362 Date date = yLayer.data.get(index).getExifTime(); 363 363 if (date != null) { 364 DateFormat df = DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat. SHORT);364 DateFormat df = DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat.MEDIUM); 365 365 lbExifTime.setText(df.format(date)); 366 366 tfGpsTime.setText(df.format(date)); … … 403 403 } 404 404 if (date != null) { 405 lbExifTime.setText(DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat. SHORT).format(date));405 lbExifTime.setText(DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat.MEDIUM).format(date)); 406 406 tfGpsTime.setText(DateUtils.getDateFormat(DateFormat.SHORT).format(date)+" "); 407 407 tfGpsTime.setEnabled(true); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r7299 r7320 264 264 osd.append(tr("\nDirection {0}\u00b0", Math.round(entry.getExifImgDir()))); 265 265 } 266 DateFormat dtf = DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat. SHORT);266 DateFormat dtf = DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat.MEDIUM); 267 267 if (entry.hasExifTime()) { 268 268 osd.append(tr("\nEXIF time: {0}", dtf.format(entry.getExifTime())));
Note:
See TracChangeset
for help on using the changeset viewer.