Ignore:
Timestamp:
2009-12-20T16:19:03+01:00 (14 years ago)
Author:
jttt
Message:

Minor mappaint cleanup, use constants for colors

File:
1 edited

Legend:

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

    r2655 r2666  
    5252    private File preferencesDirFile = null;
    5353
    54     public static interface PreferenceChangeEvent{
    55         public String getKey();
    56         public String getOldValue();
    57         public String getNewValue();
    58     }
    59 
    60     public static interface PreferenceChangedListener {
     54    public interface PreferenceChangeEvent{
     55        String getKey();
     56        String getOldValue();
     57        String getNewValue();
     58    }
     59
     60    public interface PreferenceChangedListener {
    6161        void preferenceChanged(PreferenceChangeEvent e);
    6262    }
     
    124124            this.area = area;
    125125        }
     126    }
     127
     128    public interface ColorKey {
     129        String getColorName();
     130        String getSpecialName();
     131        Color getDefault();
    126132    }
    127133
     
    581587    }
    582588
     589    public Color getColor(ColorKey key) {
     590        return getColor(key.getColorName(), key.getSpecialName(), key.getDefault());
     591    }
     592
    583593    /**
    584594     * Convenience method for accessing colour preferences.
Note: See TracChangeset for help on using the changeset viewer.