195 |
} |
} |
196 |
|
|
197 |
/** |
/** |
198 |
|
* Constructs a blank GtkImage. This is called when |
199 |
|
* GtkToolkit.createImage (String) is called with an empty string |
200 |
|
* argument (""). A blank image is loaded immediately upon |
201 |
|
* construction and has width -1 and height -1. |
202 |
|
*/ |
203 |
|
public GtkImage () |
204 |
|
{ |
205 |
|
isLoaded = true; |
206 |
|
observers = null; |
207 |
|
offScreen = false; |
208 |
|
props = new Hashtable(); |
209 |
|
errorLoading = false; |
210 |
|
} |
211 |
|
|
212 |
|
/** |
213 |
* Constructs a GtkImage by loading a given file. |
* Constructs a GtkImage by loading a given file. |
214 |
* |
* |
215 |
* @throws IllegalArgumentException if the image could not be loaded. |
* @throws IllegalArgumentException if the image could not be loaded. |