Changeset 11781 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-03-26T13:52:10+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r11589 r11781 254 254 } 255 255 256 /** 257 * Reloads all styles from the preferences. 258 */ 256 259 public static void readFromPreferences() { 257 260 styles.clear(); -
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java
r11553 r11781 49 49 } 50 50 51 /** 52 * Get the style for a specific style. Returns the range as well. 53 * @param scale The current scale 54 * @param selected true to get the state for a selected element, 55 * @return The style and the range it is valid for. 56 */ 51 57 public Pair<StyleElementList, Range> getWithRange(double scale, boolean selected) { 52 58 int idx = getIndex(selected); … … 88 94 89 95 /** 96 * Clears the style cache. This should only be used for testing. 97 * It may be removed some day and replaced by a WeakReference implementation that automatically forgets old entries. 98 */ 99 static void clearStyleCachePool() { 100 internPool.clear(); 101 } 102 103 /** 90 104 * Get the size of the intern pool. Only for tests! 91 105 * @return size of the intern pool
Note:
See TracChangeset
for help on using the changeset viewer.