1 /*
2  * Created on 2004/May/23
3  * Created by TuxPaper
4  *
5  * Copyright (C) Azureus Software, Inc, All Rights Reserved.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details ( see the LICENSE file ).
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21 
22 package org.gudy.azureus2.ui.swt.plugins;
23 
24 import org.gudy.azureus2.plugins.ui.Graphic;
25 import org.eclipse.swt.graphics.Image;
26 
27 /** An SWT image to be used in Azureus
28  *
29  * @see UISWTInstance#createGraphic
30  */
31 public interface
32 UISWTGraphic
33 extends Graphic
34 {
35   /** Retrieve the Image object
36    *
37    * @return image that is stored in this object
38    */
39 
getImage()40 	public Image getImage();
41 
42   /** Sets the image stored in this object to the supplied parameter.
43    *
44    * @param img new image to be stored in this object
45    * @return true - Image Set<br>
46    *         false - Image already set to supplied parameter
47    */
48 
setImage(Image img)49 	public boolean setImage(Image img);
50 }
51