- Common ways to obtain Monitor
private void myMethod () {Monitor m =
Collection collection;String str;new Monitor(collection.size(), str)
String str;new Monitor(int1, str)
- Smart code suggestions by Codota
}
public Monitor( final int max, final String name ) { if ( max <= 0 ) { throw new IllegalArgumentException( "The count has to be greater than 0, you gave" + max + "." ); } this.name = name; this.max = max; init(); }
public void updateProteinProcessedCound( final int newCount, final String status ) { // update status setStatus( status ); // update current element and progress bar updateProteinProcessedCound( newCount ); }
Monitor monitor = null; if ( guiEnabled ) { monitor = new Monitor( interactions.size(), "Interaction creation" ); monitor.setStatus( "Waiting for the persister to start..." ); monitor.show(); status = "No interaction created"; monitor.setStatus( status ); monitor.updateProteinProcessedCound( ++current ); monitor.hide();
public void updateProteinProcessedCound( final int newCount ) { if ( progressBar == null ) { throw new NullPointerException( "The progress bar hasn't been created." ); } // update current element current = newCount; currentLabel.setText( "Current: " + current ); currentLabel.update( frame.getGraphics() ); // update the progress bar progressBar.setValue( current ); frame.setTitle( getWindowsTitle() ); }
monitor.setStatus( "Checking " + uniprotID + " (" + taxid + ")" );
Monitor monitor = null; if ( guiEnabled ) { monitor = new Monitor( interactions.size(), "Interaction creation" ); monitor.setStatus( "Waiting for the persister to start..." ); monitor.show(); status = "No interaction created"; monitor.setStatus( status ); monitor.updateProteinProcessedCound( ++current ); monitor.hide();
public void updateProteinProcessedCound( final int newCount ) { if ( progressBar == null ) { throw new NullPointerException( "The progress bar hasn't been created." ); } // update current element current = newCount; currentLabel.setText( "Current: " + current ); currentLabel.update( frame.getGraphics() ); // update the progress bar progressBar.setValue( current ); frame.setTitle( getWindowsTitle() ); }
monitor.setStatus( "Checking " + uniprotID + " (" + taxid + ")" );
Monitor monitor = null; if ( guiEnabled ) { monitor = new Monitor( interactions.size(), "Interaction creation" ); monitor.setStatus( "Waiting for the persister to start..." ); monitor.show(); status = "No interaction created"; monitor.setStatus( status ); monitor.updateProteinProcessedCound( ++current ); monitor.hide();
public void updateProteinProcessedCound( final int newCount, final String status ) { // update status setStatus( status ); // update current element and progress bar updateProteinProcessedCound( newCount ); }
public void updateProteinProcessedCound( final int newCount ) { if ( progressBar == null ) { throw new NullPointerException( "The progress bar hasn't been created." ); } // update current element current = newCount; currentLabel.setText( "Current: " + current ); currentLabel.update( frame.getGraphics() ); // update the progress bar progressBar.setValue( current ); frame.setTitle( getWindowsTitle() ); }
public Monitor( final int max, final String name ) { if ( max <= 0 ) { throw new IllegalArgumentException( "The count has to be greater than 0, you gave" + max + "." ); } this.name = name; this.max = max; init(); }
monitor.setStatus( "Checking " + uniprotID + " (" + taxid + ")" );
boolean displayProgressBar = guiEnabled && keys.size() > 0; if ( displayProgressBar ) { monitor = new Monitor( keys.size(), "Protein update" ); monitor.setStatus( "Waiting for the checker to start..." ); monitor.show(); taxid = proteinInteractor.getOrganism().getTaxId(); monitor.setStatus( "Checking " + uniprotID + " (" + taxid + ")" ); monitor.updateProteinProcessedCound( ++current ); monitor.hide(); monitor = new Monitor( interactions.size(), "Interaction checking" ); monitor.setStatus( "Waiting for the checker to start..." ); monitor.show(); name = "no shortlabel specified"; monitor.setStatus( "Checking " + name ); monitor.updateProteinProcessedCound( ++current ); monitor.setStatus( "finished..." ); monitor.hide();
public void updateProteinProcessedCound( final int newCount, final String status ) { // update status setStatus( status ); // update current element and progress bar updateProteinProcessedCound( newCount ); }
public void setStatus( final String status ) { // update status statusLabel.setText( status ); statusLabel.update( frame.getGraphics() ); frame.setTitle( getWindowsTitle() ); }
public Monitor( final int max, final String name ) { if ( max <= 0 ) { throw new IllegalArgumentException( "The count has to be greater than 0, you gave" + max + "." ); } this.name = name; this.max = max; init(); }