001/*
002 * Created on 05.11.2010
003 *
004 */
005package org.jdesktop.swingx.renderer;
006
007import javax.swing.Icon;
008
009/**
010 * Interface for tagging rendering components to allow Highlighters to treat 
011 * the Icon (Issue #1311-swingx) as a visual decoration. ComponentProviders 
012 * which hand out IconAware rendering components must guarantee to reset its
013 * Icon property in each configuration round.  
014 * 
015 * @author Jeanette Winzenburg, Berlin
016 */
017public interface IconAware {
018
019    /**
020     * Sets the icon property.
021     * 
022     * @param icon 
023     */
024    public void setIcon(Icon icon);
025    
026    /**
027     * Returns the icon property.
028     * 
029     * @return
030     */
031    public Icon getIcon();
032    
033}