All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.valkyriercp.image.IconSource Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package org.valkyriercp.image;

import javax.swing.*;

/**
 * A loader and cache for Swing ImageIcons.
 *
 * @author Keith Donald
 * @see javax.swing.ImageIcon
 */
public interface IconSource {

    /**
     * Return an ImageIcon using its String key.
     *
     * @param key
     *            a key for the icon.
     * @return The image icon.
     * @throws NoSuchImageResourceException,
     *             if no resource is found and no broken image indicator is set.
     */
    public Icon getIcon(String key);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy