swingx-master/swingx-core/src/main/java/org/jdesktop/swingx/renderer/IconAware.java
/*
 * 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();
    
}
