ui/src/main/java/ucar/nc2/ui/image/SourcePicture.java
public boolean stopLoadingExcept( URL exemptionURL ) {
		if ( imageUrl == null ) 
			return false; // has never been used yet

		if ( pictureStatusCode != LOADING ) {
			Tools.log( "SourcePicture.stopLoadingExcept: called but pointless since image is not LOADING: " + imageUrl.toString());
			return false;
		}
			
		if ( ! exemptionURL.toString().equals( imageUrl.toString() ) ) {
			Tools.log ("SourcePicture.stopLoadingExcept: called with Url " + exemptionURL.toString() + " --> stopping loading of " + imageUrl.toString() );
			stopLoading();
			return true;
		} else
			return false;
	}
public boolean stopLoadingExcept( URL exemptionURL ) {
		if ( imageUrl == null ) 
			return false; // has never been used yet

		if ( pictureStatusCode != LOADING ) {
			Tools.log( "SourcePicture.stopLoadingExcept: called but pointless since image is not LOADING: " + imageUrl.toString());
			return false;
		}
			
		if ( ! exemptionURL.toString().equals( imageUrl.toString() ) ) {
			Tools.log ("SourcePicture.stopLoadingExcept: called with Url " + exemptionURL.toString() + " --> stopping loading of " + imageUrl.toString() );
			stopLoading();
			return true;
		} else
			return false;
	}
public boolean stopLoadingExcept ( URL exemptionURL ) { if ( imageUrl == null ) return false ; // has never been used yet if ( pictureStatusCode != LOADING ) { Tools . log ( "SourcePicture.stopLoadingExcept: called but pointless since image is not LOADING: " + imageUrl . toString ( ) ) ; return false ; } if ( ! exemptionURL . toString ( ) . equals ( imageUrl . toString ( ) ) ) { Tools . log ( "SourcePicture.stopLoadingExcept: called with Url " + exemptionURL . toString ( ) + " --> stopping loading of " + imageUrl . toString ( ) ) ; stopLoading ( ) ; return true ; } else return false ; }
this method can be invoked to stop the current reader except if it
is reading the desired file. It returns true is the desired file
is being loaded. Otherwise it returns false.
this method can be invoked to stop the current reader except if it is reading the desired file . It returns true is the desired file is being loaded . Otherwise it returns false .