public synchronized void end(){
  graphicsToBeDrawn.close();
  if (currentGraphics != null) {
    graphicsDrawn.append(currentGraphics);
  }
  graphicsDrawn.closeWhenEmpty();
  if (printerJobThread != null && printerJobThread.isAlive()) {
    try {
      printerJobThread.join();
    }
 catch (    InterruptedException e) {
    }
  }
}

public synchronized void end ( ) { graphicsToBeDrawn . close ( ) ; if ( currentGraphics != null ) { graphicsDrawn . append ( currentGraphics ) ; } graphicsDrawn . closeWhenEmpty ( ) ; if ( printerJobThread != null && printerJobThread . isAlive ( ) ) { try { printerJobThread . join ( ) ; } catch ( InterruptedException e ) { } } }
ends the print job and does any necessary cleanup .
