public java.awt.Graphics2D createPrinterGraphics(float width, float height, PrinterJob printerJob) {
        return new PdfPrinterGraphics2D(this, width, height, null, false, false, 0, printerJob);
    }
public java . awt . Graphics2D createPrinterGraphics ( float width , float height , PrinterJob printerJob ) { return new PdfPrinterGraphics2D ( this , width , height , null , false , false , 0 , printerJob ) ; }
Gets a <CODE>Graphics2D</CODE> to print on. The graphics
are translated to PDF commands.
@param width the width of the panel
@param height the height of the panel
@param printerJob
@return a <CODE>Graphics2D</CODE>