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 |
private class |
CorrelateGpxWithImages.SyncDialogWindowListener |
Modifier and Type | Field and Description |
---|---|
private javax.swing.JCheckBox |
cbExifImg |
private JosmComboBox<CorrelateGpxWithImages.GpxDataWrapper> |
cbGpx |
private javax.swing.JCheckBox |
cbShowThumbs |
private javax.swing.JCheckBox |
cbTaggedImg |
private long |
delta |
private java.util.List<CorrelateGpxWithImages.GpxDataWrapper> |
gpxLst |
private int |
lastNumMatched |
private static java.util.List<GpxData> |
loadedGpxData |
private javax.swing.JPanel |
outerPanel |
private CorrelateGpxWithImages.RepaintTheMapListener |
repaintTheMap |
private javax.swing.JLabel |
statusBarText |
private CorrelateGpxWithImages.StatusBarUpdater |
statusBarUpdater |
private CorrelateGpxWithImages.StatusBarUpdater |
statusBarUpdaterWithRepaint |
private ExtendedDialog |
syncDialog |
private JosmTextField |
tfOffset |
private JosmTextField |
tfTimezone |
private double |
timezone |
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 static java.lang.String |
formatTimezone(double timezone) |
private static java.lang.Double |
getElevation(WayPoint wp) |
private static 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 static long |
parseOffset(java.lang.String offset) |
private static double |
parseTimezone(java.lang.String timezone) |
private CorrelateGpxWithImages.GpxDataWrapper |
selectedGPX(boolean complain) |
private static java.util.List<GpxData> loadedGpxData
private transient GeoImageLayer yLayer
private double timezone
private long delta
private ExtendedDialog syncDialog
private transient java.util.List<CorrelateGpxWithImages.GpxDataWrapper> gpxLst
private javax.swing.JPanel outerPanel
private JosmComboBox<CorrelateGpxWithImages.GpxDataWrapper> cbGpx
private JosmTextField tfTimezone
private JosmTextField tfOffset
private javax.swing.JCheckBox cbExifImg
private javax.swing.JCheckBox cbTaggedImg
private javax.swing.JCheckBox cbShowThumbs
private javax.swing.JLabel statusBarText
private int lastNumMatched
private transient CorrelateGpxWithImages.StatusBarUpdater statusBarUpdater
private transient CorrelateGpxWithImages.StatusBarUpdater statusBarUpdaterWithRepaint
private transient 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 static int getLastIndexOfListBefore(java.util.List<ImageEntry> images, long searchedTime)
private static java.lang.String formatTimezone(double timezone)
private static double parseTimezone(java.lang.String timezone) throws java.text.ParseException
java.text.ParseException
private static long parseOffset(java.lang.String offset) throws java.text.ParseException
java.text.ParseException