Changeset 10839 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-08-18T03:47:10+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r10824 r10839 219 219 } 220 220 221 /**222 * Old color interface223 * <p>224 * To be removed: end of 2016225 * @deprecated Use a {@link ColorProperty} instead.226 */227 @Deprecated228 public interface ColorKey {229 String getColorName();230 231 String getSpecialName();232 233 Color getDefaultValue();234 }235 236 221 private final ListenerList<PreferenceChangedListener> listeners = ListenerList.create(); 237 222 … … 824 809 } 825 810 return tr(I18n.escape(colornames.containsKey(o) ? colornames.get(o) : o)); 826 }827 828 /**829 * Returns the color for the given key.830 * <p>831 * To be removed: end of 2016832 * @param key The color key833 * @return the color834 * @deprecated Use a {@link ColorProperty} instead.835 */836 @Deprecated837 public Color getColor(ColorKey key) {838 return getColor(key.getColorName(), key.getSpecialName(), key.getDefaultValue());839 811 } 840 812
Note:
See TracChangeset
for help on using the changeset viewer.