Logo Search packages:      
Sourcecode: libjfreechart-java version File versions  Download package

void org::jfree::chart::ChartPanel::createChartPrintJob (  )  [inline, inherited]

Creates a print job for the chart.

Definition at line 2240 of file ChartPanel.java.

Referenced by org::jfree::chart::ChartPanel::actionPerformed().

                                      {

        PrinterJob job = PrinterJob.getPrinterJob();
        PageFormat pf = job.defaultPage();
        PageFormat pf2 = job.pageDialog(pf);
        if (pf2 != pf) {
            job.setPrintable(this, pf2);
            if (job.printDialog()) {
                try {
                    job.print();
                }
                catch (PrinterException e) {
                    JOptionPane.showMessageDialog(this, e);
                }
            }
        }

    }


Generated by  Doxygen 1.6.0   Back to index