Changeset 8285 in josm for trunk/src/org/openstreetmap/josm/gui/layer/geoimage
- Timestamp:
- 2015-04-28T00:49:49+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer/geoimage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r8061 r8285 91 91 private static List<GpxData> loadedGpxData = new ArrayList<>(); 92 92 93 GeoImageLayer yLayer = null; 94 double timezone; 95 long delta; 93 private GeoImageLayer yLayer = null; 94 private double timezone; 95 private long delta; 96 96 97 97 /** … … 105 105 106 106 private static class GpxDataWrapper { 107 String name; 108 GpxData data; 109 File file; 107 private String name; 108 private GpxData data; 109 private File file; 110 110 111 111 public GpxDataWrapper(String name, GpxData data, File file) { … … 121 121 } 122 122 123 ExtendedDialog syncDialog; 124 List<GpxDataWrapper> gpxLst = new ArrayList<>(); 125 JPanel outerPanel; 126 JosmComboBox<GpxDataWrapper> cbGpx; 127 JosmTextField tfTimezone; 128 JosmTextField tfOffset; 129 JCheckBox cbExifImg; 130 JCheckBox cbTaggedImg; 131 JCheckBox cbShowThumbs; 132 JLabel statusBarText; 123 private ExtendedDialog syncDialog; 124 private List<GpxDataWrapper> gpxLst = new ArrayList<>(); 125 private JPanel outerPanel; 126 private JosmComboBox<GpxDataWrapper> cbGpx; 127 private JosmTextField tfTimezone; 128 private JosmTextField tfOffset; 129 private JCheckBox cbExifImg; 130 private JCheckBox cbTaggedImg; 131 private JCheckBox cbShowThumbs; 132 private JLabel statusBarText; 133 133 134 134 // remember the last number of matched photos 135 int lastNumMatched = 0; 135 private int lastNumMatched = 0; 136 136 137 137 /** This class is called when the user doesn't find the GPX file he needs in the files that have … … 231 231 */ 232 232 private class SetOffsetActionListener implements ActionListener { 233 JPanel panel; 234 JLabel lbExifTime; 235 JosmTextField tfGpsTime; 236 JosmComboBox<String> cbTimezones; 237 ImageDisplay imgDisp; 238 JList<String> imgList; 233 private JPanel panel; 234 private JLabel lbExifTime; 235 private JosmTextField tfGpsTime; 236 private JosmComboBox<String> cbTimezones; 237 private ImageDisplay imgDisp; 238 private JList<String> imgList; 239 239 240 240 @Override … … 665 665 syncDialog.pack(); 666 666 syncDialog.addWindowListener(new WindowAdapter() { 667 static final int CANCEL = -1; 668 static final int DONE = 0; 669 static final int AGAIN = 1; 670 static final int NOTHING = 2; 667 private static final int CANCEL = -1; 668 private static final int DONE = 0; 669 private static final int AGAIN = 1; 670 private static final int NOTHING = 2; 671 671 private int checkAndSave() { 672 672 if (syncDialog.isVisible()) … … 764 764 } 765 765 766 StatusBarUpdater statusBarUpdater = new StatusBarUpdater(false); 767 StatusBarUpdater statusBarUpdaterWithRepaint = new StatusBarUpdater(true); 766 private StatusBarUpdater statusBarUpdater = new StatusBarUpdater(false); 767 private StatusBarUpdater statusBarUpdaterWithRepaint = new StatusBarUpdater(true); 768 768 769 769 private class StatusBarUpdater implements DocumentListener, ItemListener, ActionListener { … … 835 835 } 836 836 837 RepaintTheMapListener repaintTheMap = new RepaintTheMapListener(); 837 private RepaintTheMapListener repaintTheMap = new RepaintTheMapListener(); 838 838 private class RepaintTheMapListener implements FocusListener { 839 839 @Override -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r8243 r8285 94 94 95 95 boolean useThumbs = false; 96 ExecutorService thumbsLoaderExecutor = Executors.newSingleThreadExecutor(new ThreadFactory() { 96 private ExecutorService thumbsLoaderExecutor = Executors.newSingleThreadExecutor(new ThreadFactory() { 97 97 @Override 98 98 public Thread newThread(Runnable r) { … … 102 102 } 103 103 }); 104 ThumbsLoader thumbsloader; 105 boolean thumbsLoaderRunning = false; 104 private ThumbsLoader thumbsloader; 105 private boolean thumbsLoaderRunning = false; 106 106 volatile boolean thumbsLoaded = false; 107 107 private BufferedImage offscreenBuffer; -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r7956 r8285 135 135 private class ImgDisplayMouseListener implements MouseListener, MouseWheelListener, MouseMotionListener { 136 136 137 boolean mouseIsDragging = false; 138 long lastTimeForMousePoint = 0L; 139 Point mousePointInImg = null; 137 private boolean mouseIsDragging = false; 138 private long lastTimeForMousePoint = 0L; 139 private Point mousePointInImg = null; 140 140 141 141 /** Zoom in and out, trying to preserve the point of the image that was under the mouse cursor -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java
r7956 r8285 20 20 public static final int minSize = 22; 21 21 public volatile boolean stop = false; 22 List<ImageEntry> data; 23 GeoImageLayer layer; 24 MediaTracker tracker; 25 CacheFiles cache; 26 boolean cacheOff = Main.pref.getBoolean("geoimage.noThumbnailCache", false); 22 private List<ImageEntry> data; 23 private GeoImageLayer layer; 24 private MediaTracker tracker; 25 private CacheFiles cache; 26 private boolean cacheOff = Main.pref.getBoolean("geoimage.noThumbnailCache", false); 27 27 28 28 public ThumbsLoader(GeoImageLayer layer) {
Note:
See TracChangeset
for help on using the changeset viewer.