Changeset 8764 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2015-09-18T00:57:22+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r8729 r8764 524 524 * Abstract action which allows to adjust a double value using a slider 525 525 */ 526 public static abstractclass AbstractLayerPropertySliderAction extends AbstractAction implements IEnabledStateUpdating, LayerAction {526 public abstract static class AbstractLayerPropertySliderAction extends AbstractAction implements IEnabledStateUpdating, LayerAction { 527 527 protected final JPopupMenu popup; 528 528 protected final JSlider slider; … … 539 539 @Override 540 540 public void stateChanged(ChangeEvent e) { 541 setValue( (double)slider.getValue() / factor);541 setValue(slider.getValue() / factor); 542 542 } 543 543 }); -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r8751 r8764 143 143 * use fairly small memory cache, as cached objects are quite big, as they contain BufferedImages 144 144 */ 145 public static final IntegerProperty MEMORY_CACHE_SIZE = new IntegerProperty(PREFERENCE_PREFIX + ".cache.max_objects_ram", (int)Math.max(200, 200 * Math.pow(4, ZOOM_OFFSET.get()))); 145 public static final IntegerProperty MEMORY_CACHE_SIZE = new IntegerProperty(PREFERENCE_PREFIX + ".cache.max_objects_ram", 146 (int) Math.max(200, 200 * Math.pow(4, ZOOM_OFFSET.get()))); 146 147 147 148 /* -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java
r8762 r8764 38 38 if (!cacheOff) { 39 39 try { 40 cache = JCSCacheManager.getCache("geoimage-thumbnails", 0, 120, Main.pref.getCacheDirectory().getPath() + File.separator + "geoimage-thumbnails"); 40 cache = JCSCacheManager.getCache("geoimage-thumbnails", 0, 120, 41 Main.pref.getCacheDirectory().getPath() + File.separator + "geoimage-thumbnails"); 41 42 } catch (IOException e) { 42 43 Main.warn("Failed to initialize cache for geoimage-thumbnails"); … … 134 135 if (!cacheOff && cache != null) { 135 136 try (ByteArrayOutputStream output = new ByteArrayOutputStream()) { 136 ImageIO.write(scaledBI, "png", output);137 ImageIO.write(scaledBI, "png", output); 137 138 cache.put(cacheIdent, new BufferedImageCacheEntry(output.toByteArray())); 138 139 } catch (IOException e) { … … 144 145 return scaledBI; 145 146 } 146 147 147 } -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java
r8750 r8764 217 217 String[][] ret = new String[sortedStats.size()][3]; 218 218 int index = 0; 219 for (Pair<String, Integer> e: sortedStats) {219 for (Pair<String, Integer> e: sortedStats) { 220 220 ret[index] = new String[]{e.a, e.b.toString(), tr("Clear")}; 221 221 index++;
Note:
See TracChangeset
for help on using the changeset viewer.