Package com.intellij.openapi.graph.option

Examples of com.intellij.openapi.graph.option.OptionHandler.showEditor()


  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();
View Full Code Here


    final OptionHandler options = PrintUtil.createPrintOptions();

    //show custom print dialog and adopt values
    Action optionAction = new AbstractAction(PrintUtil.OPTIONS_BUTTON) {
      public void actionPerformed(ActionEvent ev) {
        if (!options.showEditor()) return;

        PrintUtil.initGraph2DPrinter(gp, options);

        panel.setPages(0, gp.getPosterColumns(), gp.getPosterColumns() * gp.getPosterRows());
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.