Java Swing Icon clearMergedIconsCache()

Here you can find the source of clearMergedIconsCache()

Description

clear Merged Icons Cache

License

Open Source License

Declaration

public static void clearMergedIconsCache() 

Method Source Code

//package com.java2s;
/*// ww  w  . j  a v  a2  s.  com
 * This file is part of WebLookAndFeel library.
 *
 * WebLookAndFeel library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * WebLookAndFeel library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with WebLookAndFeel library.  If not, see <http://www.gnu.org/licenses/>.
 */

import java.util.HashMap;

import java.util.Map;

import javax.swing.ImageIcon;

public class Main {
    /**
     * Merges few images into single one
     */

    private static final Map<String, ImageIcon> mergedIconsCache = new HashMap<String, ImageIcon>();

    public static void clearMergedIconsCache() {
        mergedIconsCache.clear();
    }
}

Related

  1. areSizesEqual(javax.swing.Icon prevIcon, javax.swing.Icon nextIcon)
  2. blendIcon(Icon icon, float iconWeight, int rgb, float rgbWeight)
  3. blitBitmap(Graphics g, Icon icon, int x, int y, int w, int h)
  4. buildIcon(final String relativePath, final Class loader)
  5. changeBrightness(Icon icon, float factor)
  6. combineIcons(Icon underIcon, Icon overIcon)
  7. concatenateIcons(final Icon icon1, final Icon icon2)
  8. createBitmap(Icon icon)
  9. createChannelIcon(Icon ic)