Ignore:
Timestamp:
2014-11-02T11:38:51+01:00 (8 years ago)
Author:
stoecker
Message:

image size fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r7693 r7694  
    119119        /* MAP icon */
    120120        MAP,
    121         /* MAP icon maximum size*/
     121        /* MAP icon maximum size */
    122122        MAPMAX,
     123        /* MENU icon size */
     124        MENU,
    123125    }
    124126
     
    254256        case MAP: sizeval = Main.pref.getInteger("iconsize.mapmax", 16); break;
    255257        case LARGEICON: sizeval = Main.pref.getInteger("iconsize.largeicon", 24); break;
     258        case MENU: /* MENU is SMALLICON - only provided in case of future changes */
    256259        case SMALLICON: sizeval = Main.pref.getInteger("iconsize.smallicon", 16); break;
    257260        default: sizeval = Main.pref.getInteger("iconsize.default", 24); break;
     
    949952     * @return an icon that represent the overlay of the two given icons. The second icon is layed
    950953     * on the first relative to the given position.
    951      */
     954     * FIXME: This function does not fit into the ImageProvider concept as public function!
     955     * Overlay should be handled like all the other functions only settings arguments and
     956     * overlay must be transparent in the background.
     957     * Also scaling is not cared about with current implementation.
     958     */
     959    @Deprecated
    952960    public static ImageIcon overlay(Icon ground, Icon overlay, OverlayPosition pos) {
    953961        int w = ground.getIconWidth();
Note: See TracChangeset for help on using the changeset viewer.