Changeset 10839 in josm


Ignore:
Timestamp:
2016-08-18T03:47:10+02:00 (4 years ago)
Author:
Don-vip
Message:

see #13309 - remove deprecated color stuff not used outside of JOSM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r10824 r10839  
    219219    }
    220220
    221     /**
    222      * Old color interface
    223      * <p>
    224      * To be removed: end of 2016
    225      * @deprecated Use a {@link ColorProperty} instead.
    226      */
    227     @Deprecated
    228     public interface ColorKey {
    229         String getColorName();
    230 
    231         String getSpecialName();
    232 
    233         Color getDefaultValue();
    234     }
    235 
    236221    private final ListenerList<PreferenceChangedListener> listeners = ListenerList.create();
    237222
     
    824809        }
    825810        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 2016
    832      * @param key The color key
    833      * @return the color
    834      * @deprecated Use a {@link ColorProperty} instead.
    835      */
    836     @Deprecated
    837     public Color getColor(ColorKey key) {
    838         return getColor(key.getColorName(), key.getSpecialName(), key.getDefaultValue());
    839811    }
    840812
Note: See TracChangeset for help on using the changeset viewer.