public void actionPerformed(final AnActionEvent e, final Graph2D graph2D) {
Graph2DPrinter gprinter = GraphManager.getGraphManager().createGraph2DPrinter(getGraph2DView(graph2D));
final OptionHandler handler = PrintUtil.createPrintOptions();
//show custom print dialog and adopt values
if (!handler.showEditor()) return;
PrintUtil.initGraph2DPrinter(gprinter, handler);
//show default print dialogs
PrinterJob printJob = PrinterJob.getPrinterJob();
if (myPageFormat == null) myPageFormat = printJob.defaultPage();