Examples of pageDialog()


Examples of java.awt.print.PrinterJob.pageDialog()

    /**
     * Posts the Page Setup dialog
     */
    public void doPageSetup() {
        PrinterJob pjob = PrinterJob.getPrinterJob();
        pformat = pjob.pageDialog(pformat);
    }

    /**
     * A thread for printing in.
     */
 
View Full Code Here

Examples of java.awt.print.PrinterJob.pageDialog()

    PrintUtil.initGraph2DPrinter(gprinter, handler);
    //show default print dialogs
    PrinterJob printJob = PrinterJob.getPrinterJob();
    if (myPageFormat == null) myPageFormat = printJob.defaultPage();
    PageFormat pf = printJob.pageDialog(myPageFormat);
    if (pf == myPageFormat) {
      return;
    else {
      myPageFormat = pf;
    }
View Full Code Here

Examples of java.awt.print.PrinterJob.pageDialog()

        //
        // If required, pop up a dialog to adjust the page format
        //
        Boolean showPageFormat = (Boolean)hints.get(KEY_SHOW_PAGE_DIALOG);
        if(showPageFormat != null && showPageFormat.booleanValue()){
            PageFormat tmpPageFormat = printerJob.pageDialog(pageFormat);
            if(tmpPageFormat == pageFormat){
                // Dialog was cancelled, meaning that the print process should
                // be stopped.
                return;
            }
View Full Code Here

Examples of java.awt.print.PrinterJob.pageDialog()

        if (graph != null)
        {
            PrinterJob printJob = PrinterJob.getPrinterJob();
            printJob.setPrintable(graph);
            PageFormat oldPage = new PageFormat();
            PageFormat pageFormat = printJob.pageDialog(oldPage);
            if (oldPage != pageFormat)
            {
                if (printJob.printDialog())
                {
                    try
View Full Code Here

Examples of java.awt.print.PrinterJob.pageDialog()

        //
        // If required, pop up a dialog to adjust the page format
        //
        Boolean showPageFormat = (Boolean)hints.get(KEY_SHOW_PAGE_DIALOG);
        if(showPageFormat != null && showPageFormat.booleanValue()){
            PageFormat tmpPageFormat = printerJob.pageDialog(pageFormat);
            if(tmpPageFormat == pageFormat){
                // Dialog was cancelled, meaning that the print process should
                // be stopped.
                return;
            }
View Full Code Here

Examples of java.awt.print.PrinterJob.pageDialog()

      if (e.getSource() instanceof mxGraphComponent)
      {
        mxGraphComponent graphComponent = (mxGraphComponent) e
            .getSource();
        PrinterJob pj = PrinterJob.getPrinterJob();
        PageFormat format = pj.pageDialog(graphComponent
            .getPageFormat());

        if (format != null)
        {
          graphComponent.setPageFormat(format);
View Full Code Here

Examples of java.awt.print.PrinterJob.pageDialog()

     */
    public void createChartPrintJob() {

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

Examples of java.awt.print.PrinterJob.pageDialog()

        }
       
        @Override
        public void actionPerformed(ActionEvent e) {
            PrinterJob pj = PrinterJob.getPrinterJob();
            pageFormat = pj.pageDialog(pageFormat);
        }
    }

}
View Full Code Here

Examples of java.awt.print.PrinterJob.pageDialog()

        @Override
        public void actionPerformed(ActionEvent e) {
            PrinterJob pj = PrinterJob.getPrinterJob();
            PageFormat currentFormat = getPageFormat();
            pageFormat = pj.pageDialog(currentFormat);
        }
    }

}
View Full Code Here

Examples of java.awt.print.PrinterJob.pageDialog()

     */
    public void createChartPrintJob() {

        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();
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.