Logo Search packages:      
Sourcecode: wims version File versions  Download package

void ptolemy::plot::PlotFrame::_printNative (  )  [inline, protected]

Print using the native dialog. FIXME: This method does not seem to honor the user's choice of portrait vs. landscape.

Definition at line 447 of file PlotFrame.java.

References plot.

        PrinterJob job = PrinterJob.getPrinterJob();

        //PageFormat pageFormat = job.defaultPage();
        //job.setPrintable(plot, pageFormat);

        if (job.printDialog()) {
            try {
                // job.print() eventually
                // calls PlotBox.print(Graphics, PageFormat)
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(this, "Printing failed:\n"
                        + ex.toString(), "Print Error",

Generated by  Doxygen 1.6.0   Back to index