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

org.jdesktop.swingx.renderer.IconAware Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
/*
 * Created on 05.11.2010
 *
 */
package org.jdesktop.swingx.renderer;

import javax.swing.Icon;

/**
 * Interface for tagging rendering components to allow Highlighters to treat 
 * the Icon (Issue #1311-swingx) as a visual decoration. ComponentProviders 
 * which hand out IconAware rendering components must guarantee to reset its
 * Icon property in each configuration round.  
 * 
 * @author Jeanette Winzenburg, Berlin
 */
public interface IconAware {

    /**
     * Sets the icon property.
     * 
     * @param icon 
     */
    public void setIcon(Icon icon);
    
    /**
     * Returns the icon property.
     * 
     * @return
     */
    public Icon getIcon();
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy