Code example for WeakHashMap

Methods: isEmpty

0
 
  public void dispose() 
  { 
    if (isLoaded)
      { 
	if( painters == null || painters.isEmpty() )
	  freeImage(); 
	else 
	  killFlag = true; // can't destroy image yet. 
	// Do so when all painters are gone. 
      } 
  } 
 
  /** 
   * Returns the image status, used by QtToolkit 
   */ 
  public int checkImage (ImageObserver observer)
  { 
    if (addObserver(observer))
      { 
	if (errorLoading == true)