public class CorrelateGpxWithImages extends javax.swing.AbstractAction
Modifier and Type | Class and Description |
---|---|
private class |
CorrelateGpxWithImages.AdjustActionListener
Presents dialog with sliders for manual adjust.
|
private class |
CorrelateGpxWithImages.AutoGuessActionListener |
private static class |
CorrelateGpxWithImages.GpxDataWrapper |
private class |
CorrelateGpxWithImages.LoadGpxDataActionListener
This class is called when the user doesn't find the GPX file he needs in the files that have
been loaded yet.
|
private class |
CorrelateGpxWithImages.RepaintTheMapListener |
private class |
CorrelateGpxWithImages.SetOffsetActionListener
This action listener is called when the user has a photo of the time of his GPS receiver.
|
private class |
CorrelateGpxWithImages.StatusBarUpdater |
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.JCheckBox |
cbExifImg |
(package private) JosmComboBox<CorrelateGpxWithImages.GpxDataWrapper> |
cbGpx |
(package private) javax.swing.JCheckBox |
cbShowThumbs |
(package private) javax.swing.JCheckBox |
cbTaggedImg |
(package private) long |
delta |
(package private) java.util.List<CorrelateGpxWithImages.GpxDataWrapper> |
gpxLst |
(package private) int |
lastNumMatched |
private static java.util.List<GpxData> |
loadedGpxData |
(package private) javax.swing.JPanel |
outerPanel |
(package private) CorrelateGpxWithImages.RepaintTheMapListener |
repaintTheMap |
(package private) javax.swing.JLabel |
statusBarText |
(package private) CorrelateGpxWithImages.StatusBarUpdater |
statusBarUpdater |
(package private) CorrelateGpxWithImages.StatusBarUpdater |
statusBarUpdaterWithRepaint |
(package private) ExtendedDialog |
syncDialog |
(package private) JosmTextField |
tfOffset |
(package private) JosmTextField |
tfTimezone |
(package private) double |
timezone |
(package private) GeoImageLayer |
yLayer |
Constructor and Description |
---|
CorrelateGpxWithImages(GeoImageLayer layer)
Constructs a new
CorrelateGpxWithImages action. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent arg0) |
private java.lang.String |
formatTimezone(double timezone) |
private static java.lang.Double |
getElevation(WayPoint wp) |
private int |
getLastIndexOfListBefore(java.util.List<ImageEntry> images,
long searchedTime) |
private java.util.List<ImageEntry> |
getSortedImgList() |
private java.util.List<ImageEntry> |
getSortedImgList(boolean exif,
boolean tagged)
Returns a list of images that fulfill the given criteria.
|
private int |
matchGpxTrack(java.util.List<ImageEntry> images,
GpxData selectedGpx,
long offset)
Match a list of photos to a gpx track with a given offset.
|
private int |
matchPoints(java.util.List<ImageEntry> images,
WayPoint prevWp,
long prevWpTime,
WayPoint curWp,
long curWpTime,
long offset) |
private long |
parseOffset(java.lang.String offset) |
private double |
parseTimezone(java.lang.String timezone) |
private CorrelateGpxWithImages.GpxDataWrapper |
selectedGPX(boolean complain) |
private static java.util.List<GpxData> loadedGpxData
GeoImageLayer yLayer
double timezone
long delta
ExtendedDialog syncDialog
java.util.List<CorrelateGpxWithImages.GpxDataWrapper> gpxLst
javax.swing.JPanel outerPanel
JosmTextField tfTimezone
JosmTextField tfOffset
javax.swing.JCheckBox cbExifImg
javax.swing.JCheckBox cbTaggedImg
javax.swing.JCheckBox cbShowThumbs
javax.swing.JLabel statusBarText
int lastNumMatched
CorrelateGpxWithImages.StatusBarUpdater statusBarUpdater
CorrelateGpxWithImages.StatusBarUpdater statusBarUpdaterWithRepaint
CorrelateGpxWithImages.RepaintTheMapListener repaintTheMap
public CorrelateGpxWithImages(GeoImageLayer layer)
CorrelateGpxWithImages
action.layer
- The image layerpublic void actionPerformed(java.awt.event.ActionEvent arg0)
private java.util.List<ImageEntry> getSortedImgList()
private java.util.List<ImageEntry> getSortedImgList(boolean exif, boolean tagged)
exif
- also returns images with exif-gps infotagged
- also returns tagged imagesprivate CorrelateGpxWithImages.GpxDataWrapper selectedGPX(boolean complain)
private int matchGpxTrack(java.util.List<ImageEntry> images, GpxData selectedGpx, long offset)
private static java.lang.Double getElevation(WayPoint wp)
private int matchPoints(java.util.List<ImageEntry> images, WayPoint prevWp, long prevWpTime, WayPoint curWp, long curWpTime, long offset)
private int getLastIndexOfListBefore(java.util.List<ImageEntry> images, long searchedTime)
private java.lang.String formatTimezone(double timezone)
private double parseTimezone(java.lang.String timezone) throws java.text.ParseException
java.text.ParseException
private long parseOffset(java.lang.String offset) throws java.text.ParseException
java.text.ParseException