public void updateProteinProcessedCound( final int newCount, final String status ) { // update status setStatus( status ); // update current element and progress bar updateProteinProcessedCound( newCount ); }
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 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 setStatus( final String status ) { // update status statusLabel.setText( status ); statusLabel.update( frame.getGraphics() ); frame.setTitle( getWindowsTitle() ); }
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 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(); }
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(); }
/** * D E M O */ public void testIt( Monitor monitor ) { for ( int i = 0; i <= max; i++ ) { try { Thread.sleep( 3 ); } catch ( InterruptedException e ) { e.printStackTrace(); } monitor.updateProteinProcessedCound( i, "processing: " + i ); } monitor.setStatus( "Test finished." ); }
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() ); }
/** * D E M O */ public void testIt( Monitor monitor ) { for ( int i = 0; i <= max; i++ ) { try { Thread.sleep( 3 ); } catch ( InterruptedException e ) { e.printStackTrace(); } monitor.updateProteinProcessedCound( i, "processing: " + i ); } monitor.setStatus( "Test finished." ); }
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() ); }
/** * D E M O */ public void testIt( Monitor monitor ) { for ( int i = 0; i <= max; i++ ) { try { Thread.sleep( 3 ); } catch ( InterruptedException e ) { e.printStackTrace(); } monitor.updateProteinProcessedCound( i, "processing: " + i ); } monitor.setStatus( "Test finished." ); }
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() ); }