Package java.awt.print

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


  }

  private PrintPreviewPanel createPanel(Graph2D graph2D) {
    PrinterJob printJob = PrinterJob.getPrinterJob();
    final Graph2DView view = getGraph2DView(graph2D);
    return Graph2DPrintPreviewPanel.createPanel(printJob, GraphManager.getGraphManager().createGraph2DPrinter(view), printJob.defaultPage());
  }

  public void actionPerformed(final AnActionEvent e, final Graph2D graph2D) {
    final Project project = getProject(e);
View Full Code Here


        //
        PrinterJob printerJob =
            PrinterJob.getPrinterJob();

        PageFormat pageFormat =
            printerJob.defaultPage();

        //
        // Set the page parameters from the hints
        //
        Paper paper = pageFormat.getPaper();
View Full Code Here

        //
        PrinterJob printerJob =
            PrinterJob.getPrinterJob();

        PageFormat pageFormat =
            printerJob.defaultPage();

        //
        // Set the page parameters from the hints
        //
        Paper paper = pageFormat.getPaper();
View Full Code Here

     * Creates a print job for the chart.
     */
    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 {
View Full Code Here

        }

        @Override
        protected Void doInBackground() throws Exception {
            PrinterJob pj = PrinterJob.getPrinterJob();
            PageFormat pageFormat = pj.defaultPage();
            pageFormat.setOrientation(PageFormat.LANDSCAPE);
            pj.setPrintable(treeMapper.getPrintable(), pageFormat);
            if (pj.printDialog()) {
                try {
                    treeMapper.startPrinting();
View Full Code Here

     * Creates a print job for the chart.
     */
    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 {
View Full Code Here

     * Creates a print job for the chart.
     */
    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 {
View Full Code Here

     * Creates a print job for the chart.
     */
    public void createChartPrintJob() {
        //FIXME try to replace swing print stuff by swt
        PrinterJob job = PrinterJob.getPrinterJob();
        PageFormat pf = job.defaultPage();
        PageFormat pf2 = job.pageDialog(pf);
        if (pf2 != pf) {
            job.setPrintable(this, pf2);
            if (job.printDialog()) {
                try {
View Full Code Here

        //
        PrinterJob printerJob =
            PrinterJob.getPrinterJob();

        PageFormat pageFormat =
            printerJob.defaultPage();

        //
        // Set the page parameters from the hints
        //
        Paper paper = pageFormat.getPaper();
View Full Code Here

        //
        PrinterJob printerJob =
            PrinterJob.getPrinterJob();

        PageFormat pageFormat =
            printerJob.defaultPage();

        //
        // Set the page parameters from the hints
        //
        Paper paper = pageFormat.getPaper();
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.