public int print(Graphics g, PageFormat pf, int pi)
//druckfunktion:public int print(Graphics g, PageFormat pf, int pi) throws PrinterException //änderung{ Graphics2D g2=(Graphics2D)g; if (pi >= 1) { return Printable.NO_SUCH_PAGE; } g2.translate(pf.getImageableX(), pf.getImageableY()); punkteZeichnen(g2); schreiben(g2); return Printable.PAGE_EXISTS;}