question: 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 ) { } } }
target:  Ends the print job and does any necessary cleanup.