001    package net.sourceforge.mp3dings.editors.imageeditor;
002    import java.awt.Component;
003    import java.awt.event.ActionListener;
004    
005    /*
006       Copyright (C) 2007 Moritz Ringler
007       This library is free software; you can redistribute it and/or
008       modify it under the terms of the GNU Lesser General Public
009       License as published by the Free Software Foundation; either
010       version 2.1 of the License, or (at your option) any later version.
011       This library is distributed in the hope that it will be useful,
012       but WITHOUT ANY WARRANTY; without even the implied warranty of
013       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014       Lesser General Public License for more details.
015       You should have received a copy of the GNU Lesser General Public
016       License along with this library; if not, write to the Free Software
017       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
018      */
019    
020    public interface ImageComponent{
021        public Component getComponent();
022    
023        public void addActionListener(ActionListener al);
024    
025        public void removeActionListener(ActionListener al);
026    
027        public ActionListener[] getActionListeners();
028    
029        /** Returns false when the image is guaranteed to be completely loaded
030            when getImageComponent returns, true otherwise.
031            @see APICImageEditor#setImageRenderer
032          */
033        public boolean loadsAsynchronously();
034    }