public static Image getImage( String name, Object parent, boolean cache )
public static synchronized Image getImage( String url, Object parent, boolean cache )
	public static Image getImage( String name, Object parent, boolean cache )	throws IOException 	{		// check if the image has been cached before:		if ( imagesByName != null ) {			Image image = (Image) imagesByName.get( name );			if (image != null) {				return image;			}		}		//#ifdef polish.images.directLoad		// when images should be loaded directly, try to do so now:		Image image = Image.createImage( name );		if (cache) {			if (imagesByName == null ) {				imagesByName = new Hashtable();			}			imagesByName.put( name, image );		}		//# return image;				//#else		// when images should be loaded in the background, 		// tell the background-thread to do so now:				if ( ! (parent instanceof ImageConsumer)) {			//#debug error			System.out.println("StyleSheet.getImage(..) needs an ImageConsumer when images are loaded in the background!");			return null;		}		if (scheduledImagesByName == null ) {			scheduledImagesByName = new Hashtable();		}		ImageQueue queue = (ImageQueue) scheduledImagesByName.get(name);		if (queue != null) {			// this image is already scheduled to load:			queue.addConsumer((ImageConsumer) parent);			return null;		}		scheduledImagesByName.put( name, new ImageQueue( (ImageConsumer) parent, cache ) );		if (imagesByName == null ) {			imagesByName = new Hashtable();		}		if (timer == null) {			timer = new Timer();		}		ImageTask task = new ImageTask( name );		timer.schedule( task, 10 );		return null;		//#endif	}