Changeset 12340 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-06-08T01:00:48+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r12279 r12340 95 95 volatile boolean thumbsLoaded; 96 96 private BufferedImage offscreenBuffer; 97 boolean updateOffscreenBuffer = true;97 private boolean updateOffscreenBuffer = true; 98 98 99 99 private MouseAdapter mouseAdapter; … … 638 638 ImageViewerDialog.showImage(this, null); 639 639 } 640 updateOffscreenBuffer = true; 641 Main.map.repaint(); 640 updateBufferAndRepaint(); 642 641 } 643 642 … … 940 939 return; 941 940 if (isVisible() && isMapModeOk()) { 942 Main.map.mapView.repaint();943 941 cycleModeArmed = true; 942 invalidate(); 944 943 } 945 944 } … … 1039 1038 @Override 1040 1039 public void zoomChanged() { 1041 update OffscreenBuffer = true;1040 updateBufferAndRepaint(); 1042 1041 } 1043 1042 … … 1076 1075 } 1077 1076 1077 /** 1078 * Marks the offscreen buffer to be updated. 1079 */ 1078 1080 public void updateBufferAndRepaint() { 1079 1081 updateOffscreenBuffer = true; … … 1129 1131 stopLoadThumbs(); 1130 1132 } 1133 invalidate(); 1131 1134 } 1132 1135 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ShowThumbnailAction.java
r11457 r12340 11 11 import javax.swing.JCheckBoxMenuItem; 12 12 13 import org.openstreetmap.josm.Main;14 13 import org.openstreetmap.josm.gui.layer.Layer; 15 14 import org.openstreetmap.josm.gui.layer.Layer.LayerAction; … … 41 40 public void actionPerformed(ActionEvent e) { 42 41 layer.setUseThumbs(!layer.isUseThumbs()); 43 Main.map.mapView.repaint();44 42 } 45 43 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java
r11620 r12340 82 82 83 83 if (layer != null && Main.isDisplayingMapView()) { 84 layer.updateOffscreenBuffer = true; 85 Main.map.mapView.repaint(); 84 layer.updateBufferAndRepaint(); 86 85 } 87 86 } … … 89 88 if (layer != null) { 90 89 layer.thumbsLoaded(); 91 layer.updateOffscreenBuffer = true; 92 Main.map.mapView.repaint(); 90 layer.updateBufferAndRepaint(); 93 91 } 94 92 } -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r12326 r12340 490 490 public void actionPerformed(ActionEvent e) { 491 491 Main.pref.put("marker.show "+layer.getName(), layer.isTextOrIconShown() ? "hide" : "show"); 492 Main.map.mapView.repaint();492 layer.invalidate(); 493 493 } 494 494
Note:
See TracChangeset
for help on using the changeset viewer.