Changeset 8840 in josm for trunk/src/org/openstreetmap/josm/gui/layer/geoimage
- Timestamp:
- 2015-10-09T02:12:45+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer/geoimage
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r8836 r8840 92 92 private static List<GpxData> loadedGpxData = new ArrayList<>(); 93 93 94 private transient GeoImageLayer yLayer = null;94 private transient GeoImageLayer yLayer; 95 95 private double timezone; 96 96 private long delta; … … 237 237 238 238 // remember the last number of matched photos 239 private int lastNumMatched = 0;239 private int lastNumMatched; 240 240 241 241 /** This class is called when the user doesn't find the GPX file he needs in the files that have -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r8836 r8840 93 93 private int currentPhoto = -1; 94 94 95 boolean useThumbs = false;95 boolean useThumbs; 96 96 private ExecutorService thumbsLoaderExecutor = 97 97 Executors.newSingleThreadExecutor(Utils.newThreadFactory("thumbnail-loader-%d", Thread.MIN_PRIORITY)); 98 98 private ThumbsLoader thumbsloader; 99 private boolean thumbsLoaderRunning = false;100 volatile boolean thumbsLoaded = false;99 private boolean thumbsLoaderRunning; 100 volatile boolean thumbsLoaded; 101 101 private BufferedImage offscreenBuffer; 102 102 boolean updateOffscreenBuffer = true; … … 109 109 private static final class Loader extends PleaseWaitRunnable { 110 110 111 private boolean canceled = false;111 private boolean canceled; 112 112 private GeoImageLayer layer; 113 113 private Collection<File> selection; … … 902 902 } 903 903 904 private static volatile List<MapMode> supportedMapModes = null;904 private static volatile List<MapMode> supportedMapModes; 905 905 906 906 /** … … 938 938 } 939 939 940 private MouseAdapter mouseAdapter = null;941 private MapModeChangeListener mapModeListener = null;940 private MouseAdapter mouseAdapter; 941 private MapModeChangeListener mapModeListener; 942 942 943 943 @Override -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r8836 r8840 33 33 34 34 /** The file that is currently displayed */ 35 private File file = null;35 private File file; 36 36 37 37 /** The image currently displayed */ 38 private transient Image image = null;38 private transient Image image; 39 39 40 40 /** The image currently displayed */ 41 private boolean errorLoading = false;41 private boolean errorLoading; 42 42 43 43 /** The rectangle (in image coordinates) of the image that is visible. This rectangle is calculated 44 44 * each time the zoom is modified */ 45 private Rectangle visibleRect = null;45 private Rectangle visibleRect; 46 46 47 47 /** When a selection is done, the rectangle of the selection (in image coordinates) */ 48 private Rectangle selectedRect = null;48 private Rectangle selectedRect; 49 49 50 50 /** The tracker to load the images */ 51 51 private MediaTracker tracker = new MediaTracker(this); 52 52 53 private String osdText = null;53 private String osdText; 54 54 55 55 private static final int DRAG_BUTTON = Main.pref.getBoolean("geoimage.agpifo-style-drag-and-zoom", false) ? 1 : 3; … … 136 136 private class ImgDisplayMouseListener implements MouseListener, MouseWheelListener, MouseMotionListener { 137 137 138 private boolean mouseIsDragging = false;139 private long lastTimeForMousePoint = 0L;140 private Point mousePointInImg = null;138 private boolean mouseIsDragging; 139 private long lastTimeForMousePoint; 140 private Point mousePointInImg; 141 141 142 142 /** 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/ImageEntry.java
r8512 r8840 23 23 * The flag can used to decide for which image file the EXIF GPS data is (re-)written. 24 24 */ 25 private boolean isNewGpsData = false;25 private boolean isNewGpsData; 26 26 /** Temporary source of GPS time if not correlated with GPX track. */ 27 private Date exifGpsTime = null;27 private Date exifGpsTime; 28 28 Image thumbnail; 29 29 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r8836 r8840 46 46 47 47 private ImageDisplay imgDisplay = new ImageDisplay(); 48 private boolean centerView = false;48 private boolean centerView; 49 49 50 50 // Only one instance of that class is present at one time 51 51 private static volatile ImageViewerDialog dialog; 52 52 53 private boolean collapseButtonClicked = false;53 private boolean collapseButtonClicked; 54 54 55 55 static void newInstance() { … … 276 276 } 277 277 278 private transient GeoImageLayer currentLayer = null;279 private transient ImageEntry currentEntry = null;278 private transient GeoImageLayer currentLayer; 279 private transient ImageEntry currentEntry; 280 280 281 281 public void displayImage(GeoImageLayer layer, ImageEntry entry) { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java
r8836 r8840 26 26 public static final int maxSize = 120; 27 27 public static final int minSize = 22; 28 public volatile boolean stop = false;28 public volatile boolean stop; 29 29 private List<ImageEntry> data; 30 30 private GeoImageLayer layer;
Note:
See TracChangeset
for help on using the changeset viewer.