public PrintGraphAction(final Graph2D graph2D) {
super(graph2D);
}
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;