Package com.lightcrafts.platform

Examples of com.lightcrafts.platform.PrinterLayer


            }
        );
        dialog.addPageSetupAction(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    PrinterLayer printer = Platform.getPlatform().getPrinterLayer();
                    PageFormat format = printer.pageDialog(null);

                    if (format != null)
                        dialog.setPageFormat(format);
                }
            }
View Full Code Here


    private Rectangle2D imageRect;  // printed dimensions, in points
    private boolean keepCentered;
    private LinkedList<PrintLayoutModelListener> listeners;

    public PrintLayoutModel(int width, int height) {
        PrinterLayer printer = Platform.getPlatform().getPrinterLayer();
        printer.initialize();
        pageFormat = printer.getPageFormat();
        printer.dispose();

        listeners = new LinkedList<PrintLayoutModelListener>();

        pixelsPerInch = 300;
View Full Code Here

public class MacPageFormatTest {

    static void getPageFormat() {
        Platform platform = Platform.getPlatform();
        PrinterLayer printer = platform.getPrinterLayer();
        printer.getPageFormat();
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.platform.PrinterLayer

Copyright © 2018 www.massapicom. 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.